Blesta Addons Posted May 24, 2014 Report Posted May 24, 2014 as the title see . some language are Right to Left . and i heat changing the core files again and again . i prefer if we can controle the direction by the language file . Quote
Michael Posted May 24, 2014 Report Posted May 24, 2014 Not sure how that would work but maybe a special template for right to left? Quote
Blesta Addons Posted May 24, 2014 Author Report Posted May 24, 2014 Not sure how that would work but maybe a special template for right to left? it will work the same as the other has . is too sample , add a line in the language file like direction = 'rtl' if the direction is set use it , if not use the default direction . maybe we can controle also the charset , this is just a idea . blesta have already a file to get the name language , we can use it English, US direction, rtl en general a example : setlocale(LC_ALL, 'ar'); setLocale(LC_TIME, "ar_SA.UTF-8"); define("language", "Arabic"); define("CORE_LC", "AR"); define("CORE_LC2", "ar"); define("CHARSET", "utf-8"); define("TEXTDIRECTION","rtl"); define("COMPATIBILITE", "3.2.1"); define("RELEASE", "2014-05-15"); define("AUTHOR", "Community"); i use like that in my multi-language project . i can controle the output of the date/time with the supported language for any language . Quote
Tyson Posted May 27, 2014 Report Posted May 27, 2014 The direction is already set by the language file (CORE-850). If you downloaded the language from the translator, then it has been set appropriately already. If you're creating the language definitions yourself, then you need to set it in /languages/<lang_code>/app_controller.php: // Language direction (only ltr or rtl) $lang['AppController.lang.dir'] = "ltr"; A right-to-left language may not look good in the interface due to styling, so that is something you'll need to consider yourself, as we have not gotten to it yet. CORE-851 Michael 1 Quote
Blesta Addons Posted May 31, 2014 Author Report Posted May 31, 2014 what other things we can controle with app_controller ? Quote
Tyson Posted June 2, 2014 Report Posted June 2, 2014 The AppController language file contains general (global) language definitions likely to be used in several places throughout the system. It doesn't control any other settings. Quote
Blesta Addons Posted July 29, 2014 Author Report Posted July 29, 2014 Sorry to up this thread again . as the first post we heat changing the core files (we can do it and get the result we need) . what about CORE-851 ? any update news . i have tested the the solution mentioned by adding a new "rtl.css" if the language is rtl in the structure , is working fine . just include it the default style at least client side , i will fill up the rtl.css and send you the style need to be in that file . OUT of this thread , to complete task for the template we hope this one laso be included in v 3.3.0 http://www.blesta.com/forums/index.php?/topic/3012-language-file-for-template/ Quote
Tyson Posted July 29, 2014 Report Posted July 29, 2014 We haven't gotten to CORE-851. If you're able to create some styles related to that task, then that may help us get to it quicker. Quote
Blesta Addons Posted July 30, 2014 Author Report Posted July 30, 2014 Hello Tyson i will complete this task after i finish the cpanel manage2 module (it will be free also for the comunnity) . then i will sen dyou the css file for rtl language . in versus i need this to be added to your task http://www.blesta.com/forums/index.php?/topic/3012-language-file-for-template/ Quote
Blesta Addons Posted August 5, 2014 Author Report Posted August 5, 2014 i have completed the task for CORE-851 . i will contact tyson in private to send him the files toinclude them in v3.2.2 /3.3.0 Now we have a big probleme the navlinks get thier name from database , if we change the language , the nav link remain the same . is better to move the link name from database to language files . 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.