I can make Chinese Simplified and Chinese Traditional Localization language

I can make Chinese Simplified and Chinese Traditional Localization language, since no one is working on these, but how may I start with? hmmm

  • 611
  • More
Replies (15)
    • when I run phing package_all_langs or phing package_module -Dvendor=your_vendor_folder_name -Dmodule=your_module_folder_name 

      it prompted error:

      root@localhost:/var/www/html# phing package_all_langs

      Buildfile: /var/www/html/build.xml

      BUILD FAILED

      /var/www/html/build.xml:2:16: Unexpected tag <html> in top-level of build file.

      Total time: 0.0535 seconds

      how do I alter this file plz? thx

      • It looks like your build.xml file is broken, please compare your build.xml file with the one from the repository:

        https://raw.githubusercontent.com/unaio/una/master/build.xml

        • Thx Alex, another question: How do I change the language for "Minutes" "Hours", I cant find them in Timeline and System, since I need to translate lets say "28 minutes ago"

          thank you again~

          • I also wanna translate AQB's apps, for Boonex, prefix is bx_, how do I translate AQB soft's app plz? :)

            • You have 2 ways to do it:

              1) translate via Stuido->Polyglot app (a new app should be installed).

              2) before installation to place the language XML file to modules/aqb/install/langs folder under the same name as you have it in Polyglot app. Then install app. You may use the original en.xml fil as an example from the same directory.

              • 1) this translation is from moment.js library, it already has many translations, you just need to specify correct language code and country code, so it will load appropriate language file. You can do it like this:

                INSERT INTO `sys_localization_languages`(`Name`, `Flag`, `LanguageCountry`, `Title`, `Enabled`) VALUES
                ('ru', 'ru', 'ru_RU', 'Russian', '0');

                2) TO make self-containing language file, you need to place translations for modules in your language module into data/langs/ directory, make a folder with module name there (for example 'aqb_notes'), then place language file in newly created folder, name of language file must match your language code (for example ru.xml)

                • thank you both!! I got it working now :) plz see my other enquiry posts :P 😍Love~ 

                  • How do I change the language for "Minutes" "Hours", I cant find them in Timeline and System, since I need to translate lets say "28 minutes ago"

                    thank you again~

                    • As I said before it's part of moment.js library, which already has many translations, you just need to set correct country code as I stated before, for the Chinese it should be one of the following, which are already supported: zh_CN, zh_HK, zh_TW

                      • Oops I didn't see that part:) thank you Alex! I got it working.

                        One thing tho, cuz I inserted it to the database, but if I uninstall Chinese language and reinstall, I have to insert it to mysql again manually, since I'm doing a lot of translation work on Bx and Aqb plugins, I need to reinstall Chinese language alot, is there a way to insert "LanguageCountry" along with language install?

                        • Instead of reinstalling Chinese language you can install Developer app and make language restore from there.

                          Also LanguageCountry field update should be in your module install.sql

                          • cool, all worked out fine! thx~

                            • Is there a chinese standard language pack that we can buy or download?

                              • Hello LeonidS 

                                Please I need a clarification here on how to translate third party modules.

                                #2) What about if the module installation was already done without the translated XML file or maybe someone forgot to place it in the folder and instead of using the Polyglot App, we want to translate straight into the XML file? So creating a XML file using the original en.xml file as an example, translating it, then uploading it to the server at modules/xxx/install/langs, will it still work? Will Polyglot automatically detect the new translation? I am asking because I don't  see any recompile button in UNA as we have in Dolphin.

                                Thanks

                                • 你的中文语言包 能分享给我吗?

                                  Login or Join to comment.