Language pack for 2.x

Developers
alexo
2013-05-22
2013-06-14
  • alexo
    alexo
    2013-05-22

    I've already translated the current version files to Bulgarian :)
    To my surprise there are modules outputting text that is hard coded in them.
    Shall I change inside modules or you plan to include the language vars inside them?
    Cheers,
    Alex
    p.s. Once finished I'll share my files (Bulgarian)

     
  • alexo
    alexo
    2013-05-23

    Example:

    javascript/minib.js: updateSiteStatus("Please Wait");
    jslib/record_filters.js: updateSiteStatus("Please Wait");
    modules/workflow/js/recipients.js: updateSiteStatus("Please Wait");
    modules/config/js/logs.js: updateSiteStatus("Please Wait");
    modules/config/js/groups.js: updateSiteStatus("Please Wait");
    modules/config/js/profile.js: updateSiteStatus("Please Wait");
    modules/config/js/profile.js: updateSiteStatus("Please Wait");
    modules/config/js/profile.js: updateSiteStatus("Please Wait");
    modules/config/js/profile.js: updateSiteStatus("Please Wait");
    modules/addressbook/js/addr.js: updateSiteStatus("Please Wait");
    modules/addressbook/js/addr.js: updateSiteStatus("Please Wait");
    modules/addressbook/js/addr.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/browse.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/browse.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/pdfedit.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/share.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/share.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/share.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/search.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/search.js: updateSiteStatus("Please Wait");
    modules/docmgr/js/permissions.js: updateSiteStatus("Please Wait");
    modules/composeemail/js/suggest.js: updateSiteStatus("Please Wait");
    modules/composeemail/js/attach.js: updateSiteStatus("Please Wait");
    modules/composeemail/js/addressbook.js: updateSiteStatus("Please Wait");
    modules/composeemail/js/addressbook.js: updateSiteStatus("Please Wait");

    Should be changed to: updateSiteStatus(_I18N_PLEASEWAIT) ?
    Cheers

     
  • alexo
    alexo
    2013-05-23

    Same here>
    ckeditor/dialogs/customimage/customimage.js: updateSiteStatus("Uploading files");
    modules/workflow/js/workflow.js: updateSiteStatus("Deleting workflow");
    modules/contacts/searchcontacts/javascript.js: updateSiteStatus("Deleting contact");
    modules/composeemail/js/template.js: updateSiteStatus("Loading Template Data");
    modules/composeemail/javascript.js: updateSiteStatus("Saving Draft");

    We would need new Language VARs for them, currently not in the English files

     
    Last edit: alexo 2013-05-23
  • alexo
    alexo
    2013-06-04

    Just for the record, we do have many of the errors(throwError) also using hard coded text into the lib files (apilib/ lib/)>

    grep "throwError(\"" -R * | grep -v _I18N | wc -l
    106

    apilib/lib/config/account.php
    apilib/lib/config/keyword.php
    apilib/lib/config/group.php
    apilib/lib/eform/forms.php
    apilib/lib/eform/filters.php
    apilib/lib/email/send.php
    apilib/lib/email/attach.php
    apilib/lib/docmgr/share.php
    apilib/lib/docmgr/object.php
    apilib/lib/docmgr/util/lock.php
    apilib/lib/docmgr/query.php
    apilib/lib/docmgr/import.php
    apilib/lib/docmgr/workflow.php
    apilib/lib/edav/object.php
    apilib/auth.php
    apilib/apirequest.php
    app/openoffice.php
    lib/apiclient.php
    lib/account/account.php
    lib/account/plugins/ldap.php
    lib/account/ldap_group.php

    Thanks for making DocMGR 100% translatable! :)
    Cheers

     
  • alexo
    alexo
    2013-06-10

    Hello,
    I see most of the files are now updated in 2.1.3 :) . Thanks.
    I still see these >
    modules/composeemail/javascript.js: updateSiteStatus("Saving Draft");

    The 'throwError's we reduced to 48 :)

    grep "throwError(\"" -R * | grep -v _I18N | wc -l
    48

    grep "throwError(\"" -R * | grep -v _I18N |awk -F ":" '{print$1}'|sort -u
    apilib/apirequest.php
    apilib/lib/eform/filters.php
    apilib/lib/eform/forms.php
    apilib/lib/email/send.php
    app/openoffice.php
    install/classes/app.php
    install/classes/config.php
    install/classes/database.php
    install/classes/template.php
    install/classes/verify.php
    lib/account/account.php
    lib/account/ldap_group.php
    lib/account/plugins/ldap.php
    lib/apiclient.php

     
  • alexo
    alexo
    2013-06-10

    One more found:

    apilib/lib/docmgr/workflow.php: else $due = "Not Set";

    lang/en/client.js:var _I18N_NOT_SET = "Not Set";

     
  • alexo
    alexo
    2013-06-10

    And finally I want to mention the content in > /modules/login/javascript.js
    I needed to translate as well.


    cont.appendChild(ce("div","","welcomeMessage","Welcome To DocMGR"));
    row.appendChild(ce("div","loginColumn loginHeader","","Login"));
    row.appendChild(ce("div","loginColumn","",createTextbox("login")));
    row.appendChild(ce("div","loginColumn loginHeader","","Password"));
    row.appendChild(ce("div","loginColumn","",createPassword("password")));
    row.appendChild(ce("div","loginColumn loginHeader","",createCheckbox("save_password")));
    row.appendChild(ce("div","loginColumn","","Save Password"));
    cont.appendChild(ce("div","loginSubmit","",createBtn("Login","Login","AUTH.login()")));
    cont.appendChild(ce("div","","loginError"));


     
  • Andrea Taroni
    Andrea Taroni
    2013-06-14

    Are you preparing new lang files that translates the entire buttons and sentences in docmgr 2.x?
    When will be downloadable?