A agb2008 Member Licensed User Longtime User Mar 29, 2015 #1 What's the best way to add support for different languages in B4J app ? In JavaFX Scene Builder there is an option: Preview -> Internalization -> Set Resources , but I can't find support for Locale, ResourceBundle or i18nBundle in B4J...
What's the best way to add support for different languages in B4J app ? In JavaFX Scene Builder there is an option: Preview -> Internalization -> Set Resources , but I can't find support for Locale, ResourceBundle or i18nBundle in B4J...
Erel B4X founder Staff member Licensed User Longtime User Mar 30, 2015 #2 This APIs are not available in B4J. You will need to create a custom solution. You can use the simple text "map" file for each language. Upvote 0
This APIs are not available in B4J. You will need to create a custom solution. You can use the simple text "map" file for each language.
tdocs2 Well-Known Member Licensed User Longtime User Aug 6, 2015 #3 Erel said: This APIs are not available in B4J. You will need to create a custom solution. You can use the simple text "map" file for each language. Click to expand... Thank you, Erel. How can the app tell the country and language in B4J? It is not only language - many ways to address that issue (as you point out). How about currency symbol and number of decimal places? Is there something available in this area? Sandy Upvote 0
Erel said: This APIs are not available in B4J. You will need to create a custom solution. You can use the simple text "map" file for each language. Click to expand... Thank you, Erel. How can the app tell the country and language in B4J? It is not only language - many ways to address that issue (as you point out). How about currency symbol and number of decimal places? Is there something available in this area? Sandy
EnriqueGonzalez Well-Known Member Licensed User Longtime User Aug 6, 2015 #4 Hi again. to get the language and country: B4X: getsystemproperties(user.country,"DEFAULT") getsystemproperties(user.language,"DEFAULT") and to set them: B4X: setsystemproperties(user.country,"DEFAULT") setsystemproperties(user.language,"DEFAULT") Upvote 0
Hi again. to get the language and country: B4X: getsystemproperties(user.country,"DEFAULT") getsystemproperties(user.language,"DEFAULT") and to set them: B4X: setsystemproperties(user.country,"DEFAULT") setsystemproperties(user.language,"DEFAULT")
tdocs2 Well-Known Member Licensed User Longtime User Aug 6, 2015 #5 Thank you, Enrique. Any way to get currency symbol and format? Best wishes. Sandy Upvote 0
tdocs2 Well-Known Member Licensed User Longtime User Aug 6, 2015 #6 Enrique Gonzalez R said: getsystemproperties(user.country,"DEFAULT") getsystemproperties(user.language,"DEFAULT") Click to expand... Enrique, B4X: Log(GetSystemProperty("user.country","DEFAULT")) Log(GetSystemProperty("user.language","DEFAULT")) Thanks. Sandy Last edited: Aug 6, 2015 Upvote 0
Enrique Gonzalez R said: getsystemproperties(user.country,"DEFAULT") getsystemproperties(user.language,"DEFAULT") Click to expand... Enrique, B4X: Log(GetSystemProperty("user.country","DEFAULT")) Log(GetSystemProperty("user.language","DEFAULT")) Thanks. Sandy