Page 1 of 7 123 ... LastLast
Results 1 to 10 of 62

Thread: How to translate Ext GWT's messages?

  1. #1

    Default How to translate Ext GWT's messages?

    Hi,

    I want to translate messages and date picker to another language (portuguese). How can I do that? I noticed that if I change the locale to spanish or french it works fine. I just need the instructions to create a new locale and how can I translate myself...

    Thanks in advance,

    cgraf

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    Take a look at the com.extjs.gxt.ui.client.messages package. This is where the translations are located. Portuguese translations do not exist. I have created 2 new translations:

    MyMessages_pt.properties
    MyMessages_pt_BR.properties

    The files will go out in the next release and I have attached them for your reference.
    Attached Files Attached Files

  3. #3

    Default

    Thank you Darrell

    If you dont mind I did some ajusts to the translation and you can use it if you want. Files are attached.
    Attached Files Attached Files

  4. #4
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    I updated the files to use yours.

  5. #5

    Default

    Hi,
    I've translate in Italian the messages properties. I hope it can be helpfull.

    For me of course

    Thanks!
    Attached Files Attached Files

  6. #6
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    Thanks, it has been added.

  7. #7
    Sencha User
    Join Date
    Sep 2007
    Posts
    22

    Default Supported languages

    Darell!

    Which languages EXT GWT support?

    PS: Very nice work! I will waiting to 1.1 and 1.2 versions.

  8. #8
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    Currently, there are translations for:

    English
    French (fr)
    German (de)
    Greek (el_GR)
    Italian (it)
    Portuguese (pt, pt_BR)
    Spanish (es)

    If anyone needs other translations we can add them.

  9. #9
    Ext User
    Join Date
    Jul 2008
    Location
    China
    Posts
    10

    Post for chinese

    Hi,
    I have translated it into chinese (in utf-8).
    Hope it will be useful.

    Regards.
    Zhou.

    Sorry I can not attach a file now. here is the content:
    ---------------
    # UpdateManager
    updateManager_indicatorText=<div class="loading-indicator">装载中...</div>

    # Grid
    grid_ddText={0} 行被选中

    # TabPanelItem
    tabPanelItem_closeText=关闭这个选项卡

    # Field
    field_invalidText=该域里的值不合法

    # LoadMask
    loadMask_msg=装载中...

    # MessageBox
    messageBox_ok=确认
    messageBox_cancel=取消
    messageBox_yes=是
    messageBox_no=否
    messageBox_close=关闭

    # DatePicker
    datePicker_todayText=今天
    datePicker_minText=该日期在最小日期之前
    datePicker_maxText=该日期在最大日期之后
    datePicker_disabledDaysText=
    datePicker_disabledDatesText=
    datePicker_nextText=下一个月
    datePicker_prevText=前一个月
    datePicker_monthYearText=选择一个月份
    datePicker_todayTip={0}
    datePicker_okText= 确认
    datePicker_cancelText=取消
    datePicker_startDay=0

    # PagingToolBar
    pagingToolBar_beforePageText=页
    pagingToolBar_afterPageText=之于 {0}
    pagingToolBar_firstText=第一页
    pagingToolBar_prevText=前一页
    pagingToolBar_nextText=下一页
    pagingToolBar_lastText=最后一页
    pagingToolBar_refreshText=刷新
    pagingToolBar_displayMsg=正显示 {2} 中的 {0} - {1}
    pagingToolBar_emptyMsg=没有可显示数据

    # TextField
    textField_minLengthText=该域的最小长度是 {0}
    textField_maxLengthText=该域的最大长度是 {0}
    textField_blankText=该域是必须的
    textField_regexText=
    textField_emptyText=

    # NumberField
    numberField_minText=该域的最小值是 {0}
    numberField_maxText=该域的最大值是 {0}
    numberField_nanText={0} 不是一个合法数字

    # DateField
    dateField_disabledDaysText=无效
    dateField_disabledDatesText=无效
    dateField_minText=该域里的日期必须在 {0} 之后
    dateField_maxText=该域里的日期必须在 {0} 之前
    dateField_invalidText={0} 是非法日期 - 必须是形式 {1}
    #dateField_format=月/日/年
    #dateField_altFormats=月/日/年(四位)|月-日-年|月-日-年(四位)|月/日|月-日|月日|月日年|月日年(四位)|日|年(四位)-月-日
    dateField_format=m/d/y
    dateField_altFormats=m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d

    # ComboBox
    comboBox_loading=装载中...

    # TimeField
    timeField_minText=该域里的时间必须和 {0} 相等或在其之后
    timeField_maxText=该域里的时间必须和 {0} 相等或在其之前
    timeField_invalidText={0} 是非法时间
    timeField_format=g:i A
    timeField_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

    #GridView
    gridView_sortAscText=升序排列
    gridView_sortDescText=降序排列
    gridView_columnsText=列

    #GroupingView
    groupingView_emptyGroupText=(无)
    groupingView_groupByText=以该域为组
    groupingView_showGroupsText=在组中显示

    # PropertyColumnModel
    propertyColumnModel_nameText=名字
    propertyColumnModel_valueText=值

    # BorderLayout
    borderLayout_splitTip=通过拖拉来重新分配大小.
    borderLayout_collapsibleSplitTip=通过拖拉来重新分配大小. 通过双击来隐藏.

    # ThemeSelector
    themeSelector_blueTheme=蓝色主题
    themeSelector_grayTheme=灰色主题

    ---------------
    Last edited by zhou; 14 Jul 2008 at 7:10 AM. Reason: attachment

  10. #10

    Default

    I would like also to creat a translation, but where will I find the english equivalents? I've searched in MyMessages.java but without success.

Page 1 of 7 123 ... LastLast

Posting Permissions

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