hxh-1 Posted December 27, 2011 Posted December 27, 2011 I find a question. In the log file PrjWorkFlow: 00000EC8: 08:44:17:File not found: F:\Users\Public\Documents\FMSoft\Framework\unigui\ext-3.4.0\src\locale\ext-lang-zh.js In the html source <script src="ext-3.4.0/src/locale/ext-lang-zh.js"></script> In the F:\Users\Public\Documents\FMSoft\Framework\uniGUI\ext-3.4.0\src\locale the file name is ext-lang-zh_CN.js Is the file name wrong ? Thank you. Quote
Administrators Farshad Mohajeri Posted December 27, 2011 Administrators Posted December 27, 2011 ext-lang-zh_CN.js is for Chinese, ext-lang-zh_TW is for Taiwan Chinese perhaps. You can copy or rename one of them as ext-lang-zh.js Quote
dionel1969 Posted December 27, 2011 Posted December 27, 2011 ext-lang-zh_CN.js is for Chinese, ext-lang-zh_TW is for Taiwan Chinese perhaps. You can copy or rename one of them as ext-lang-zh.js by the way, If I set Locale in ServerModule to "es" the message box should show captions of buttons in Spanish??? extract from ext-lang-es.js if(Ext.MessageBox){ Ext.MessageBox.buttonText = { ok : "Aceptar", cancel : "Cancelar", yes : "S\u00ED", no : "No" }; } also Caption of Form. Quote
Administrators Farshad Mohajeri Posted December 27, 2011 Administrators Posted December 27, 2011 by the way, If I set Locale in ServerModule to "es" the message box should show captions of buttons in Spanish??? Yes Quote
dionel1969 Posted December 27, 2011 Posted December 27, 2011 It would be nice if 1- everything concern to language could be set at client level setting just setting locale, but... 2- It would be nice too if this could be dynamically set. For example, here in Dominican Rep. people use Spanish as language for communication, but some companies have subsidiaries in Haiti, and there people use French, or a variant of French named Creole. So, the same application here must show interface in Spanish, but there in French. So, if in the generation of html file could be dynamically specified locale strings will be very good. Of course, by the normal way using OS locales could solve this, but many times you have a copy of OS in other language, not in your language. For example, I use an English copy of Windows for developing for many reasons, and there are many clients with non-Spanish copy of windows. So, setting this property to AUTO will solve by the normal OS way, setting to ES will be in Spanish, but setting to DYN will be "dynamically" set in the Event: OnLocaleSetting( var aLocale: String ) It is an idea, from me. Quote
dionel1969 Posted December 28, 2011 Posted December 28, 2011 Yes It does not happening as you can see in the bitmap I upload. Quote
Administrators Farshad Mohajeri Posted December 28, 2011 Administrators Posted December 28, 2011 It does not happening as you can see in the bitmap I upload. It does work here. You must be using the latest build. Quote
Administrators Farshad Mohajeri Posted December 28, 2011 Administrators Posted December 28, 2011 It does work here. You must be using the latest build. OR you must wait the next build not sure Quote
dionel1969 Posted December 28, 2011 Posted December 28, 2011 OR you must wait the next build not sure I must wait for the NEXT BUILD to be sure. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.