Jump to content

Manfred62

Members
  • Posts

    326
  • Joined

  • Last visited

Posts posted by Manfred62

  1. I've made a first translation file for german: GitHub

    All strings are translatable, but

    line 98 ist not working:

    'notes' => sprintf(__("For example Font Awesome checkmark icon e.g. %s\n(You need to include Font Awesome on your own)"), "<i class='fa fa-check'></i>"),
    
    

    with single quotes it works, but without the newline \n.

    Maybe don't use the \n? Or delete part of string "(You need to include Font Awesome on your own)", because Font Awesome is already included in PW.

    same problem with line 217:

    'notes' => __("Default true\nIt has been suggested that this setting can effectively help to reduce identity theft through XSS attacks"),
    
    
    • Like 2
  2. Hi Can

    works nice and translation in default language works also (except 2 strings).

    Additional you can make line 54, 55, 66, 67 translateable.

    Line 98 and 217 is not working.

    When using single quotes, it works but without the newline \n

  3. sidebar:

    hmm, font-size 12px in the sidebar ul is not very user-friendy. Hard to pick with the cursor.

    Depending on the changing background-images the color contrast is low (#2ba6cb).

    images:

    In the screenshot above the small images are round. At the site the images are square. Getting round with hover. Intentional?

    Around width smaller 1230px there's no more background image, only dark-grey color.

    Tested with Win 7, Firefox 42

  4. I'm nearly ready with the german translation for PW 2.7. I found 3 files where we didn't translated the date format until now. Normally the format for german is used as d.m.Y instead of Y-m-d. In this old thread it sounds like the format has to be in Y-m-d? Could someone clarify this?

    InputfieldSelector.module

    Y-m-d
    date format

    yyyy-mm-dd
    date format placeholder (what users see)
    ==================
    InputfieldPageTable.module

    Y-m-d H:i
    Date format for created/modified/published
    ==================
    LanguageSupport.module

    Y-m-d H:i:s
    Sortable date format used in the admin

  5. It would be nice to update the system notification settings for the order with other descriptions. With the current translation it's really hard to differ what means what. I'd rather use something like "newest first" or "oldest first", which makes clear which notifications will be above others.

    changed to "Neueste zuerst" and "Älteste zuerst"

    • Like 1
  6. I can confirm the very slow scrolling (Win 7, Firefox/Chrome).

    Clicking through the page, then go back with the backwards button always shows the submenus from the last visited page. Reloading clears this.

    post-1027-0-81984600-1436692302_thumb.jp

    • Like 1
  7. Hi Marek,

    there's no easy way for doing translations in PW. Actually you have to go through all files, step by step. Maybe you can start with the old 2.2 files and correct or complete them.

    The stable version 2.6.1 has 138 translatable files. The dev 2.6.x has 141 files. 9 files are not translatable or not needed.

    here's a list of all translatable files (PW stable):

    wire--core--admintheme-php.json
    wire--core--field-php.json
    wire--core--fieldgroups-php.json
    wire--core--fields-php.json
    wire--core--fieldselectorinfo-php.json
    wire--core--fieldtype-php.json
    wire--core--fieldtypemulti-php.json
    wire--core--filevalidatormodule-php.json
    wire--core--functions-php.json
    wire--core--inputfield-php.json
    wire--core--inputfieldwrapper-php.json
    wire--core--modules-php.json
    wire--core--modulesduplicates-php.json
    wire--core--pageimage-php.json
    wire--core--pages-php.json
    wire--core--paginatedarray-php.json
    wire--core--password-php.json
    wire--core--process-php.json
    wire--core--sanitizer-php.json
    wire--core--session-php.json
    wire--core--sessioncsrf-php.json
    wire--core--wirecache-php.json
    wire--core--wirehttp-php.json
    wire--core--wiretempdir-php.json
    wire--core--wireupload-php.json
    wire--modules--admintheme--adminthemedefault--adminthemedefault-module.json
    wire--modules--admintheme--adminthemereno--adminthemereno-module.json
    wire--modules--admintheme--adminthemereno--adminthemerenohelpers-php.json
    wire--modules--admintheme--adminthemereno--debug-inc.json
    wire--modules--admintheme--adminthemereno--default-php.json
    wire--modules--fieldtype--fieldtypecomments--commentfilterakismet-module.json
    wire--modules--fieldtype--fieldtypecomments--commentform-php.json
    wire--modules--fieldtype--fieldtypecomments--commentlist-php.json
    wire--modules--fieldtype--fieldtypecomments--commentnotifications-php.json
    wire--modules--fieldtype--fieldtypecomments--fieldtypecomments-module.json
    wire--modules--fieldtype--fieldtypecomments--inputfieldcommentsadmin-module.json
    wire--modules--fieldtype--fieldtypedatetime-module.json
    wire--modules--fieldtype--fieldtypefieldsettabopen-module.json
    wire--modules--fieldtype--fieldtypefile-module.json
    wire--modules--fieldtype--fieldtypefloat-module.json
    wire--modules--fieldtype--fieldtypeinteger-module.json
    wire--modules--fieldtype--fieldtypemodule-module.json
    wire--modules--fieldtype--fieldtypeoptions--fieldtypeoptions-module.json
    wire--modules--fieldtype--fieldtypeoptions--selectableoptionconfig-php.json
    wire--modules--fieldtype--fieldtypeoptions--selectableoptionmanager-php.json
    wire--modules--fieldtype--fieldtypepage-module.json
    wire--modules--fieldtype--fieldtypepagetable-module.json
    wire--modules--fieldtype--fieldtyperepeater--fieldtyperepeater-module.json
    wire--modules--fieldtype--fieldtyperepeater--inputfieldrepeater-module.json
    wire--modules--fieldtype--fieldtypeselector-module.json
    wire--modules--fieldtype--fieldtypetext-module.json
    wire--modules--fieldtype--fieldtypetextarea-module.json
    wire--modules--fieldtype--fieldtypeurl-module.json
    wire--modules--inputfield--inputfieldasmselect--inputfieldasmselect-module.json
    wire--modules--inputfield--inputfieldbutton-module.json
    wire--modules--inputfield--inputfieldcheckbox-module.json
    wire--modules--inputfield--inputfieldcheckboxes--inputfieldcheckboxes-module.json
    wire--modules--inputfield--inputfieldckeditor--inputfieldckeditor-module.json
    wire--modules--inputfield--inputfielddatetime--inputfielddatetime-module.json
    wire--modules--inputfield--inputfieldemail-module.json
    wire--modules--inputfield--inputfieldfieldset-module.json
    wire--modules--inputfield--inputfieldfile--inputfieldfile-module.json
    wire--modules--inputfield--inputfieldfloat-module.json
    wire--modules--inputfield--inputfieldform-module.json
    wire--modules--inputfield--inputfieldhidden-module.json
    wire--modules--inputfield--inputfieldicon--inputfieldicon-module.json
    wire--modules--inputfield--inputfieldimage--inputfieldimage-module.json
    wire--modules--inputfield--inputfieldinteger-module.json
    wire--modules--inputfield--inputfieldmarkup-module.json
    wire--modules--inputfield--inputfieldname-module.json
    wire--modules--inputfield--inputfieldpage--inputfieldpage-module.json
    wire--modules--inputfield--inputfieldpageautocomplete--inputfieldpageautocomplete-module.json
    wire--modules--inputfield--inputfieldpagelistselect--inputfieldpagelistselect-module.json
    wire--modules--inputfield--inputfieldpagelistselect--inputfieldpagelistselectmultiple-module.json
    wire--modules--inputfield--inputfieldpagename--inputfieldpagename-module.json
    wire--modules--inputfield--inputfieldpagetable--inputfieldpagetable-module.json
    wire--modules--inputfield--inputfieldpagetable--inputfieldpagetableajax-php.json
    wire--modules--inputfield--inputfieldpagetitle--inputfieldpagetitle-module.json
    wire--modules--inputfield--inputfieldpassword-module.json
    wire--modules--inputfield--inputfieldradios--inputfieldradios-module.json
    wire--modules--inputfield--inputfieldselect-module.json
    wire--modules--inputfield--inputfieldselectmultiple-module.json
    wire--modules--inputfield--inputfieldselector--inputfieldselector-module.json
    wire--modules--inputfield--inputfieldsubmit--inputfieldsubmit-module.json
    wire--modules--inputfield--inputfieldtext-module.json
    wire--modules--inputfield--inputfieldtextarea-module.json
    wire--modules--inputfield--inputfieldurl-module.json
    wire--modules--jquery--jquerywiretabs--jquerywiretabs-module.json
    wire--modules--languagesupport--languageparser-php.json
    wire--modules--languagesupport--languagesupport-module.json
    wire--modules--languagesupport--languagesupportfields-module.json
    wire--modules--languagesupport--languagesupportpagenames-module.json
    wire--modules--languagesupport--languagetabs-module.json
    wire--modules--languagesupport--processlanguage-module.json
    wire--modules--markup--markuppagefields-module.json
    wire--modules--markup--markuppagernav--markuppagernav-module.json
    wire--modules--pagepaths-module.json
    wire--modules--pagerender-module.json
    wire--modules--process--processcommentsmanager--processcommentsmanager-module.json
    wire--modules--process--processfield--processfield-module.json
    wire--modules--process--processfield--processfieldexportimport-php.json
    wire--modules--process--processforgotpassword-module.json
    wire--modules--process--processhome-module.json
    wire--modules--process--processlist-module.json
    wire--modules--process--processlogger--processlogger-module.json
    wire--modules--process--processlogin--processlogin-module.json
    wire--modules--process--processmodule--processmodule-module.json
    wire--modules--process--processmodule--processmoduleinstall-php.json
    wire--modules--process--processpageadd--processpageadd-module.json
    wire--modules--process--processpageclone-module.json
    wire--modules--process--processpageedit--processpageedit-module.json
    wire--modules--process--processpageeditimageselect--processpageeditimageselect-module.json
    wire--modules--process--processpageeditlink--processpageeditlink-module.json
    wire--modules--process--processpagelist--processpagelist-module.json
    wire--modules--process--processpagelister--processpagelister-module.json
    wire--modules--process--processpagesearch--processpagesearch-module.json
    wire--modules--process--processpagesort-module.json
    wire--modules--process--processpagetrash-module.json
    wire--modules--process--processpagetype--processpagetype-module.json
    wire--modules--process--processpageview-module.json
    wire--modules--process--processpermission--processpermission-module.json
    wire--modules--process--processprofile--processprofile-module.json
    wire--modules--process--processrecentpages--processrecentpages-module.json
    wire--modules--process--processrole--processrole-module.json
    wire--modules--process--processtemplate--processtemplate-module.json
    wire--modules--process--processtemplate--processtemplateexportimport-php.json
    wire--modules--process--processuser--processuser-module.json
    wire--modules--process--processuser--processuserconfig-php.json
    wire--modules--session--sessionhandlerdb--processsessiondb-module.json
    wire--modules--session--sessionhandlerdb--sessionhandlerdb-module.json
    wire--modules--session--sessionloginthrottle--sessionloginthrottle-module.json
    wire--modules--system--systemnotifications--systemnotifications-module.json
    wire--modules--system--systemnotifications--systemnotificationsconfig-php.json
    wire--modules--system--systemupdater--systemupdater-module.json
    wire--modules--textformatter--textformatterentities-module.json
    wire--modules--textformatter--textformattermarkdownextra--textformattermarkdownextra-module.json
    wire--templates-admin--debug-inc.json
    wire--templates-admin--default-php.json
    

    here's a empty language pack. You can pick the additional files (beside your 2.2 files) and upload them in the backend. Maybe this is a little bit faster. Then you can start translating them.

    empty_lang_pack_pw_2.6.zip

    Take care, when creating new translation-files via the backend. With PHP version 5.5 and higher, the paths are not working on PHP versions lower than 5.5

    // path created on PHP >= 5.5
    "file": "wire//core//AdminTheme.php",
    
    // path compatible with all PHP versions
    "file": "wire\/core\/AdminTheme.php",
    
    • Like 1
  8. today I installed the latest dev (2.6 dev) and tried to install language files into the default language. The language files aren't visible, but the backend is translated. Clicking different pages or buttons in the admin result in a fatal error:

    Recoverable Fatal Error: Argument 3 passed to LanguageTranslator::textdomainTemplate() must be of the type array, null given, called in E:\xampp\htdocs\devtest\wire\modules\LanguageSupport\LanguageTranslator.php on line 389 and defined (line 106 of E:\xampp\htdocs\devtest\wire\modules\LanguageSupport\LanguageTranslator.php)
    This error message was shown because you are logged in as a Superuser. Error has been logged.

    seems, there is something broken in LanguageTranslator.php

    EDIT: found 2 corrupted language files, which caused the problem. Replaced them --> all fine!

    • Like 1
  9. It seems like this should work. Could you please confirm?
    $fieldEnabledTemplates->description = __('The batch editing option will only be available for the selected templates.'."\n".'NB Leave blank to allow all templates.', __FILE__);

    the concatenation doesn't work.

  10. I accepted your PR and also fixed (I think) the issue you were having translating that the enabled templates setting description. Please let me know if it works now.

    just tested this. I can reproduce the non-translated text. It's because you use double-quotes instead of single quotes? Example: line 1005, 1021

    Please search for \nNB inside the file. Normally you only need \n for a new line. Or has this (NB) a special meaning? Next problem: with single quotes only \n didn't work.

  11. You're right. If you see other languages ​​appear \ / and no //. I'll fix it today :)

    Gracias Raul 

    I remember this behaviour. It depends on the PHP version. With php 5.5 (?) and higher you get the // when creating new translation files in the backend.

    • Like 1
×
×
  • Create New...