Page 31 of 39 FirstFirst ... 212930313233 ... LastLast
Results 301 to 310 of 385

Thread: Ext Translations

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #301

    Default

    Quote Originally Posted by mystix View Post
    that fixed locale file is what's in SVN, and is merely a copy-paste of the changes you proposed in https://www.sencha.com/forum/showthread.php?p=176981. should i be looking out for anything else?

    [edit]
    i just noticed you posted fixes for the monthNumbers array, but you mentioned month shortnames in that post.
    did you mean to fix the shortMonthNames array instead (the month names in the Date.monthNumbers array are currently shorter than the month names in the Date.shortMonthNames array)?
    i'm sorry, i was mistaken. just incorrect test. it works
    thanks for fix :-)

  2. #302
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    Quote Originally Posted by rion View Post
    i'm sorry, i was mistaken. just incorrect test. it works
    hooray.

  3. #303
    Sencha User
    Join Date
    Jan 2008
    Location
    Tokyo
    Posts
    9

    Default addendum to Grid i18n japanese

    I'd like to add some translations to ext-lang-ja.js.

    Code:
    --- ext-lang-ja.js.orig 2008-08-12 17:55:57.000000000 +0900
    +++ ext-lang-ja.js      2008-08-12 17:39:21.000000000 +0900
    @@ -136,7 +136,14 @@
          sortDescText : "降順",
          lockText     : "カラムロック",
          unlockText   : "カラムロック解除",
    -     columnsText  : "Columns"
    +     columnsText  : "カラム"
    +  });
    +}
    +
    +if(Ext.grid.GroupingView){
    +  Ext.apply(Ext.grid.GroupingView.prototype, {
    +     groupByText   : "このカラムでグルーピング",
    +     showGroupsText: "グルーピング"
       });
     }
    Attached Files Attached Files

  4. #304
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    Quote Originally Posted by Sakuro View Post
    I'd like to add some translations to ext-lang-ja.js.

    Code:
    --- ext-lang-ja.js.orig 2008-08-12 17:55:57.000000000 +0900
    +++ ext-lang-ja.js      2008-08-12 17:39:21.000000000 +0900
    @@ -136,7 +136,14 @@
          sortDescText : "降順",
          lockText     : "カラムロック",
          unlockText   : "カラムロック解除",
    -     columnsText  : "Columns"
    +     columnsText  : "カラム"
    +  });
    +}
    +
    +if(Ext.grid.GroupingView){
    +  Ext.apply(Ext.grid.GroupingView.prototype, {
    +     groupByText   : "このカラムでグルーピング",
    +     showGroupsText: "グルーピング"
       });
     }
    他の翻訳は正しいですか?

    if you could check @condor's updated ext-lang-en.js file (http://extjs.com/forum/showthread.ph...445#post206445) for Ext 2.2 against the japanese locale file in the official download that would help. どうも

  5. #305
    Ext User halkon_polako's Avatar
    Join Date
    Nov 2007
    Location
    Barcelona
    Posts
    193

    Thumbs up Updated translations 2.2: Catalonian and Spanish

    Hi!!

    Here are attached the updated translations of Catalonian and Spanish languages based on the Condor's version ext-lang-en.js file (http://extjs.com/forum/showthread.ph...445#post206445).

    Regards
    Attached Files Attached Files
    Last edited by halkon_polako; 14 Aug 2008 at 10:52 AM. Reason: Added link

  6. #306
    Sencha User
    Join Date
    Jan 2008
    Location
    Tokyo
    Posts
    9

    Default

    Quote Originally Posted by mystix View Post
    他の翻訳は正しいですか?

    if you could check @condor's updated ext-lang-en.js file (http://extjs.com/forum/showthread.ph...445#post206445) for Ext 2.2 against the japanese locale file in the official download that would help. どうも
    OK. I'll check the files in my spare time within a couple of weeks.

  7. #307
    Sencha User
    Join Date
    Mar 2007
    Location
    Toronto, ON, CA
    Posts
    202

    Default

    I have found a problem with JSBuilder and the locale files. If you notice that your text in jumbled up, it may be an encoding problem. JSBuilder has a problem if your first file is encoded in ANSI and subsequent files are encoded in UTF-8 (recommended coding for locale files). For more details including a workaround, please see the following post:
    http://extjs.com/forum/showthread.ph...332#post216332

  8. #308
    Sencha User
    Join Date
    Jan 2008
    Location
    Tokyo
    Posts
    9

    Default

    Quote Originally Posted by Sakuro View Post
    OK. I'll check the files in my spare time within a couple of weeks.
    Here it is.

    Major Changes:
    - some labels are gone from english files, so are corresponding japanese.
    (ex. lockText in Grid)
    - added translations for HTMLEditor, TimeField, CheckboxGroup and RadioGroup.

    If we can localize AM/PM in time format, it is better to use 'Ag:i' instead of 'g:i A'
    at since the latter is conventional in Japan. AM/PM in japanese are 午前/午後 respectively
    and are prefixed to the time value without whitespace.
    Attached Files Attached Files

  9. #309
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    Quote Originally Posted by Sakuro View Post
    Here it is.

    Major Changes:
    - some labels are gone from english files, so are corresponding japanese.
    (ex. lockText in Grid)
    - added translations for HTMLEditor, TimeField, CheckboxGroup and RadioGroup.

    If we can localize AM/PM in time format, it is better to use 'Ag:i' instead of 'g:i A'
    at since the latter is conventional in Japan. AM/PM in japanese are 午前/午後 respectively
    and are prefixed to the time value without whitespace.
    thanks for the update, though i think you used an older version of the english locale file.
    i've pasted the latest english locale file (updated by @condor in http://extjs.com/forum/showthread.ph...445#post206445) below for your reference:
    Code:
    /**
     * List compiled by mystix on the extjs.com forums.
     * Thank you Mystix!
     *
     * English Translations
     * updated to 2.2 by Condor (8 Aug 2008)
     */
    
    Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
    
    if(Ext.DataView){
      Ext.DataView.prototype.emptyText = "";
    }
    
    if(Ext.grid.GridPanel){
      Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
    }
    
    if(Ext.LoadMask){
      Ext.LoadMask.prototype.msg = "Loading...";
    }
    
    Date.monthNames = [
      "January",
      "February",
      "March",
      "April",
      "May",
      "June",
      "July",
      "August",
      "September",
      "October",
      "November",
      "December"
    ];
    
    Date.getShortMonthName = function(month) {
      return Date.monthNames[month].substring(0, 3);
    };
    
    Date.monthNumbers = {
      Jan : 0,
      Feb : 1,
      Mar : 2,
      Apr : 3,
      May : 4,
      Jun : 5,
      Jul : 6,
      Aug : 7,
      Sep : 8,
      Oct : 9,
      Nov : 10,
      Dec : 11
    };
    
    Date.getMonthNumber = function(name) {
      return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
    };
    
    Date.dayNames = [
      "Sunday",
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday",
      "Saturday"
    ];
    
    Date.getShortDayName = function(day) {
      return Date.dayNames[day].substring(0, 3);
    };
    
    Date.parseCodes.S.s = "(?:st|nd|rd|th)";
    
    if(Ext.MessageBox){
      Ext.MessageBox.buttonText = {
        ok     : "OK",
        cancel : "Cancel",
        yes    : "Yes",
        no     : "No"
      };
    }
    
    if(Ext.util.Format){
      Ext.util.Format.date = function(v, format){
        if(!v) return "";
        if(!(v instanceof Date)) v = new Date(Date.parse(v));
        return v.dateFormat(format || "m/d/Y");
      };
    }
    
    if(Ext.DatePicker){
      Ext.apply(Ext.DatePicker.prototype, {
        todayText         : "Today",
        minText           : "This date is before the minimum date",
        maxText           : "This date is after the maximum date",
        disabledDaysText  : "",
        disabledDatesText : "",
        monthNames        : Date.monthNames,
        dayNames          : Date.dayNames,
        nextText          : 'Next Month (Control+Right)',
        prevText          : 'Previous Month (Control+Left)',
        monthYearText     : 'Choose a month (Control+Up/Down to move years)',
        todayTip          : "{0} (Spacebar)",
        format            : "m/d/y",
        okText            : "*OK*",
        cancelText        : "Cancel",
        startDay          : 0
      });
    }
    
    if(Ext.PagingToolbar){
      Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText : "Page",
        afterPageText  : "of {0}",
        firstText      : "First Page",
        prevText       : "Previous Page",
        nextText       : "Next Page",
        lastText       : "Last Page",
        refreshText    : "Refresh",
        displayMsg     : "Displaying {0} - {1} of {2}",
        emptyMsg       : 'No data to display'
      });
    }
    
    if(Ext.form.Field){
      Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
    }
    
    if(Ext.form.TextField){
      Ext.apply(Ext.form.TextField.prototype, {
        minLengthText : "The minimum length for this field is {0}",
        maxLengthText : "The maximum length for this field is {0}",
        blankText     : "This field is required",
        regexText     : "",
        emptyText     : null
      });
    }
    
    if(Ext.form.NumberField){
      Ext.apply(Ext.form.NumberField.prototype, {
        decimalSeparator : ".",
        decimalPrecision : 2,
        minText : "The minimum value for this field is {0}",
        maxText : "The maximum value for this field is {0}",
        nanText : "{0} is not a valid number"
      });
    }
    
    if(Ext.form.DateField){
      Ext.apply(Ext.form.DateField.prototype, {
        disabledDaysText  : "Disabled",
        disabledDatesText : "Disabled",
        minText           : "The date in this field must be after {0}",
        maxText           : "The date in this field must be before {0}",
        invalidText       : "{0} is not a valid date - it must be in the format {1}",
        format            : "m/d/y",
        altFormats        : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
      });
    }
    
    if(Ext.form.ComboBox){
      Ext.apply(Ext.form.ComboBox.prototype, {
        loadingText       : "Loading...",
        valueNotFoundText : undefined
      });
    }
    
    if(Ext.form.VTypes){
      Ext.apply(Ext.form.VTypes, {
        emailText    : 'This field should be an e-mail address in the format "[email protected]"',
        urlText      : 'This field should be a URL in the format "http:/'+'/www.domain.com"',
        alphaText    : 'This field should only contain letters and _',
        alphanumText : 'This field should only contain letters, numbers and _'
      });
    }
    
    if(Ext.form.HtmlEditor){
      Ext.apply(Ext.form.HtmlEditor.prototype, {
        createLinkText : 'Please enter the URL for the link:',
        buttonTips : {
          bold : {
            title: 'Bold (Ctrl+B)',
            text: 'Make the selected text bold.',
            cls: 'x-html-editor-tip'
          },
          italic : {
            title: 'Italic (Ctrl+I)',
            text: 'Make the selected text italic.',
            cls: 'x-html-editor-tip'
          },
          underline : {
            title: 'Underline (Ctrl+U)',
            text: 'Underline the selected text.',
            cls: 'x-html-editor-tip'
          },
          increasefontsize : {
            title: 'Grow Text',
            text: 'Increase the font size.',
            cls: 'x-html-editor-tip'
          },
          decreasefontsize : {
            title: 'Shrink Text',
            text: 'Decrease the font size.',
            cls: 'x-html-editor-tip'
          },
          backcolor : {
            title: 'Text Highlight Color',
            text: 'Change the background color of the selected text.',
            cls: 'x-html-editor-tip'
          },
          forecolor : {
            title: 'Font Color',
            text: 'Change the color of the selected text.',
            cls: 'x-html-editor-tip'
          },
          justifyleft : {
            title: 'Align Text Left',
            text: 'Align text to the left.',
            cls: 'x-html-editor-tip'
          },
          justifycenter : {
            title: 'Center Text',
            text: 'Center text in the editor.',
            cls: 'x-html-editor-tip'
          },
          justifyright : {
            title: 'Align Text Right',
            text: 'Align text to the right.',
            cls: 'x-html-editor-tip'
          },
          insertunorderedlist : {
            title: 'Bullet List',
            text: 'Start a bulleted list.',
            cls: 'x-html-editor-tip'
          },
          insertorderedlist : {
            title: 'Numbered List',
            text: 'Start a numbered list.',
            cls: 'x-html-editor-tip'
          },
          createlink : {
            title: 'Hyperlink',
            text: 'Make the selected text a hyperlink.',
            cls: 'x-html-editor-tip'
          },
          sourceedit : {
            title: 'Source Edit',
            text: 'Switch to source editing mode.',
            cls: 'x-html-editor-tip'
          }
        }
      });
    }
    
    if(Ext.grid.GridView){
      Ext.apply(Ext.grid.GridView.prototype, {
        sortAscText  : "Sort Ascending",
        sortDescText : "Sort Descending",
        columnsText  : "Columns"
      });
    }
    
    if(Ext.grid.GroupingView){
      Ext.apply(Ext.grid.GroupingView.prototype, {
        emptyGroupText : '(None)',
        groupByText    : 'Group By This Field',
        showGroupsText : 'Show in Groups'
      });
    }
    
    if(Ext.grid.PropertyColumnModel){
      Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
        nameText   : "Name",
        valueText  : "Value",
        dateFormat : "m/j/Y"
      });
    }
    
    if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
      Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
        splitTip            : "Drag to resize.",
        collapsibleSplitTip : "Drag to resize. Double click to hide."
      });
    }
    
    if(Ext.form.TimeField){
      Ext.apply(Ext.form.TimeField.prototype, {
        minText : "The time in this field must be equal to or after {0}",
        maxText : "The time in this field must be equal to or before {0}",
        invalidText : "{0} is not a valid time",
        format : "g:i A",
        altFormats : "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
      });
    }
    
    if(Ext.form.CheckboxGroup){
      Ext.apply(Ext.form.CheckboxGroup.prototype, {
        blankText : "You must select at least one item in this group"
      });
    }
    
    if(Ext.form.RadioGroup){
      Ext.apply(Ext.form.RadioGroup.prototype, {
        blankText : "You must select one item in this group"
      });
    }
    @condor's updated english locale file contains localisation code for the TimeField, so you can adjust the default format as you've described.

    p.s. post back here again when you've added the locale code for the TimeField + any other missing code from @condor's english locale file. thanks for contributing!

  10. #310
    Ext JS Premium Member dj's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    573

    Default

    This thread http://extjs.com/forum/showthread.php?t=45512 (last two posts) has fixes for the French and German locale.
    Daniel Jagszent
    [email protected]??gsze?t.de <- convert to plain ASCII to get my email address

Page 31 of 39 FirstFirst ... 212930313233 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •