Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: Language system

  1. #1
    Member Ivan A's Avatar
    Join Date
    Mar 2007
    Posts
    141
    cPanel/WHM Access Level

    Root Administrator

    Default Language system

    Hi,

    I have long wanted to ask, please implement finally a new, convenient system to work with languages.

    Very conveniently implemented in vBulletin and XenForo.

    All phrases are stored in one .xml file by category, ie a language file for all skins, etc., without separation for each skin, it is very inconvenient to transfer the same ..

    Thanks you.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,067
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    vBulletin and XenForo are PHP scripts, cPanel is written in Perl. A little bit different. But, you're in luck all the same!

    WHM > Locales > Copy/Edit Locales as you want.

  3. #3
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    493
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    vBulletin allows you to edit only locales that haven't been translated yet (new keys) and also compares the new locale to the english version so that you only see the keys that exist in the english version.

    At the moment it is very difficult to translate cPanel, the best way seems to be to export an english version and the language you want to translate it to to XML and then build your own custom script to compare and rebuild a clean version, and to do this manually every time a new version of cPanel comes out.

    I believe that any non-english host would benefit from a decent language system.

    A few months ago a member of cPanel support started trying to manually extract the 300 or more keys that were missing from the French locales for me but gave up because it was too much work (I guess).

    Instead of trying to build good locales your self (which are never perfect), please just build a system that allows us to do it for you.

    All we are asking for is a list of all keys that don't exist in a given locale so that we can translate any new values as they arrive.

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Quote Originally Posted by monarobase View Post
    All we are asking for is a list of all keys that don't exist in a given locale so that we can translate any new values as they arrive.
    Would a command-line utility that could take in a locale name as a parameter and output missing keys be okay?

    I spoke with our developer that oversees the Locale system and we both agree that listing missing keys in some way is a good idea. However, I don't foresee there being many people requesting this functionality at this time, so I'm trying to reduce the amount of resources we would need to expend to accommodate this request, thus making it easier for me to convince the developers to implement this without there being much community demand.

  5. #5
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    493
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    It would be better than nothing… but it should be two ways : any locales that do not exist in the english language should not be shown (or automatically deleted).

    I'm pretty sure that with the old system all variables were based on the english version.

    If you could just show a list with on the left the english keys (taken from the english locale file) and on the right if the key exists in the other language show the other languages translation and if it doesn't exist show the english version + apply a css class to the translated ones + 2 lines of javascript to allow us to hide all the already translated (existing keys).

    It seems that cPanel's locale system is suffering in all languages, that you are working on getting the translations better but never spending a few hours to do it right and allow us to help.

    I'm not a perl programmer, but I do program PHP and it does not seem like a very complicated system to do, especially as you already have the XML parser.

    I did a similar system a few months ago working with Json files and it took me about 2 hours to get a working system (import english json file to memory, import other language json file to memory, build web form from using english keys and other language's values if exist and english otherwise and all to toggle with a bit of javascript then rebuild json file on form submit.

    If you could just give up 30 minutes per language file you could give us a system like vbulletin has and we could all particpate in translating cPanel to give it a perfect translation without you needing to do much work. My request is for you to not waist time working on the language files to try and keep them in line with new features, but to build a tool to allow us to do it for you.

    I could quickly build my own script to edit your language files, but if cPanel does it lots of people will be able to help.

    If you don't want to integrate it into cPanel, what about the system Installatron uses ? (web form on their website to allow people to submit translations).
    Last edited by monarobase; 10-04-2011 at 05:43 PM.

  6. #6
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    493
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Just a quick note to say that as no one else has shown any interest in this feature request I made myself a quick PHP script to do what I needed.

    It took me about 3 hours to build a simple (not perfect but fully functional) form generator that does the following :

    1) Import en.xml + mylang.xml from specified file paths.
    2) Build a web form showing all values that are in en.xml but not in mylang.xml
    3) On submit I build a new language file and force the download.

    Result :

    My language file is built in exactly the same order as the english one, with exactly the same item keys and all the keys that the english file has got.

    I haven't fully tested it yet as I have not tried to import the generated file as I will do so when I have finished the French translation (it's a lot better than it used to be but there are still 280 items that exist in the English language file that don't exist in the French one !)

    Although I do not actually need this feature so urgently I still maintain my request as I don't want to have to maintain the french language file on my own.
    Last edited by monarobase; 10-19-2011 at 05:22 PM.

  7. #7
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    710

    Default Re: Language system

    clean up of dupes, etc is detailed at http://forums.cpanel.net/f145/remove...tml#post984891

    HTH!

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    I spoke with our product manager this morning and we're going to add a list of phrases that will need translated into the release notes. This will eliminate any confusion introduced by making utilities and all that, and puts all the work of communicating updated phrases on us. We have ways of tracking this information so we'll just make it a priority to communicate this information accordingly.

    I'll leave this thread open until we have been doing this for a couple versions.

  9. #9
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    493
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Great !

    Would it be possible to do this for 11.32 ? (when 11.31 becomes 11.32…) ?

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Quote Originally Posted by monarobase View Post
    Great !

    Would it be possible to do this for 11.32 ? (when 11.31 becomes 11.32…) ?
    We're going to try to start this ASAP, but 11.31 will be becoming 11.32 some time very shortly so I can't guarantee that quick of a turnaround - but we'll try .

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Quote Originally Posted by cPanelDavidG View Post
    We're going to try to start this ASAP, but 11.31 will be becoming 11.32 some time very shortly so I can't guarantee that quick of a turnaround - but we'll try .
    If you scroll to the bottom of the release notes for version 11.32 at cPanel & WHM 11.32 Release Notes then you will see our raw files we use for our translation service with regards to new phrases etc.

  12. #12
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    493
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Very nice, thank you

  13. #13
    Member albatroz's Avatar
    Join Date
    Mar 2003
    Location
    Virtual Orbis / Peru
    Posts
    172
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Interesting.
    Does it mean that we may expect well done translations soon?

  14. #14
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Quote Originally Posted by albatroz View Post
    Interesting.
    Does it mean that we may expect well done translations soon?
    Yes, but I do not have a firm ETA yet.

  15. #15
    Member Ivan A's Avatar
    Join Date
    Mar 2007
    Posts
    141
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Language system

    Dan, please remove the separation of languages​​, ie Now while downloading a language file for each skin - a separate group of phrases, very uncomfortable ... Phrases that are the same .. Please if possible to remove duplicate phrases.
    Last edited by Ivan A; 05-08-2012 at 01:21 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. change language+default language
    By sehh in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-14-2008, 11:33 AM
  2. nightly checks, [smartcheck] [system check] [active system a
    By Philip in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 01-06-2004, 12:02 PM
  3. german language pack to language
    By zhero2002 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-19-2003, 07:35 AM
  4. system messages language
    By onokazu in forum Themes and Branding
    Replies: 1
    Last Post: 07-21-2002, 06:40 PM