which variable is setting?
How to detect system(PC,phone) language &auto setting renpy
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
How to detect system(PC,phone) language &auto setting renpy
How to detect system(PC,phone) language &auto setting renpy language?
THX
which variable is setting?
which variable is setting?
Re: How to detect system(PC,phone) language &auto setting re
it should take system language
Re: How to detect system(PC,phone) language &auto setting re
Maybe:decemer wrote:it should take system language
http://stackoverflow.com/questions/3425 ... -in-python
???
Re: How to detect system(PC,phone) language &auto setting re
xela wrote:Maybe:decemer wrote:it should take system language
http://stackoverflow.com/questions/3425 ... -in-python
???
Code: Select all
#python3 cmd code:
import locale
myloacl=locale.getdefaultlocale()[0][:2]
print("myloacl: "+myloacl)
if myloacl=='en':
language = "english"
elif myloacl=='zh':
language = "None"
else:
language = "None"
print("language: "+language)
Code: Select all
init python:
import locale
myloacl=(locale.getdefaultlocale())[0][:2]
if myloacl=='en':
config.language = "english"
elif myloacl=='zh':
config.language = None
else:
config.language = None
Re: How to detect system(PC,phone) language &auto setting re
on my virtual os x, it cant work,anybody work this in os x?mac iphone,cant use this
Who is online
Users browsing this forum: Google [Bot]
