Menu

#51 New version Chinese translation(新版本汉语翻译)v1.5.6

Unstable (example)
open
nobody
5
2023-05-02
2023-04-14
Auase
No

Since the author of the old version of the Chinese translation has not been updated for a long time, the new version has added more items. I did the translation myself, but there are 3 sentences, because I can’t find the location of the original text, so it is still in English. If there is a big guy who is willing to point out , or if you find any mistakes, please tell me, thank you!
my mail: auase@outlook.com
website: www.auase.com

请把文件复制到安装目录\share\lang文件夹下,然后在程序里语言选项选择Chinese

由于旧版汉语翻译作者已经很久没更新,新版本增加了比较多项目,我自己做了翻译,但是有3个句子,因为我找不到原文位置所以还是英文的,如果有那位大佬肯指点,或者有发现错误的请告诉我,谢谢!
邮箱:auase@outlook.com
网站:www.auase.com

1 Attachments

Discussion

  • Auase

    Auase - 2023-04-16

    上一个有遗留,请下载这个

     
  • Helmar Gerloni

    Helmar Gerloni - 2023-04-16

    Thanks! Added your translation to my repository https://github.com/helge17/tuxguitar

    If you would like to also translate some other dialogues (for plugins etc.) just search for the files named messages.properties in the TuxGuitar source tree.

     

    Last edit: Helmar Gerloni 2023-04-16
    • Auase

      Auase - 2023-04-17

      Hello, apart from the "share\templates\templates.xml" file, I have merged all the Chinese translations of other plugins into the "messages_ zh.properties" file.

       
  • Helmar Gerloni

    Helmar Gerloni - 2023-04-18

    Sorry, have overlooked that. Now I have also added the translations of the plugins.

    I could not find the following names in the sources, so I did not include them:
    - action.file-format-batch-converter=
    - action.guitar-tuner=
    - action.jack-console=
    - browser.factory.fs.community-files=
    - file.new-song.template-1=
    - file.new-song.template-2=
    - tools.file-format-batch-converter=
    - tools.Instrument-tuner=
    - tools.jack-console-title=
    Not sure where they come from, maybe from older TuxGuitar versions?

     
    • Auase

      Auase - 2023-04-18

      Sorry, I couldn't find these titles either. I forgot to delete them. But All sub projects have been translated.
      "file.new-song.template-1=
      and
      - file.new-song.template-2="
      in the "tuxguitar-1.5.6 \share templates\templates. xml" file.


      -action.file-format-batch-converter in the "TGConverterPlugin.java" file;
      - action.guitar-tuner in the "TGTunerPlugin.java" file;
      - Share with the Community in the "TGShareSongExporter.java" file;
      - -action.jack-console in the "JackConsolePlugin.java" file.


      Because these files are packaged, I don't know how to export them to a language file

       
  • Auase

    Auase - 2023-04-18

    Sorry, I couldn't find these titles either. I forgot to delete them. But All sub projects have been translated.
    "file.new-song.template-1=
    and
    - file.new-song.template-2="
    in the "tuxguitar-1.5.6 \share templates\templates. xml" file.


    -action.file-format-batch-converter in the "TGConverterPlugin.java" file;
    - action.guitar-tuner in the "TGTunerPlugin.java" file;
    - Share with the Community in the "TGShareSongExporter.java" file;
    - -action.jack-console in the "JackConsolePlugin.java" file.


    Because these files are packaged, I don't know how to export them to a language file

     
  • guiv

    guiv - 2023-04-19

    I was also wondering why, in my French version, toolbar items "Tools/File format batch converter" and "Tools/Guitar Tuner" were not translated...
    Looking at the source code of TG1.5.6, in TGConverterPlugin.java I can see the name is hardcoded:

        protected String getItemName() {
            return "File format batch converter";
        }
    

    In which version did you see this reference to action.file-format-batch-converter?

     
    • Auase

      Auase - 2023-04-20

      "Action" indicates that the pop-up menu only displays the "File format batch converter" sub project, but in the "Java" file, it is not referenced in the language file. Translating these means that the project needs to be rebuilt, and modifying the language file alone is not possible.

       
      • guiv

        guiv - 2023-04-22

        Yep, got it. In fact there are 2 problems in the code for the plugins-related menu items in "Tools" menu. First, their labels are hardcoded (see example of batch converter above). Second, labels are only set when menu is created and are not refreshed if language is changed in the settings. A fix is available here.

         
  • Helmar Gerloni

    Helmar Gerloni - 2023-05-02

    The binaries on https://github.com/helge17/tuxguitar/releases now contain all the Chinese translations from this patch. Thanks for your help!

     

Log in to post a comment.