求flowblade movie editor的中文翻譯

参与到Ubuntu的翻译中来
回复
头像
rosn
帖子: 1014
注册时间: 2006-01-14 18:33

求flowblade movie editor的中文翻譯

#1

帖子 rosn » 2018-01-30 19:04

剛安裝flowblade發現沒有中文,搜索了一下文檔,說翻譯要進行如下操作,可是我對E文太差了,無法完成翻譯。

If you would like to have Flowblade translated into your language you can help by contributing a translation of Flowblade in your language.

Flowblade uses the standard GNU "gettext" utilities to translate the application. GNU "gettext" is a relatively complex tool, but Flowblade provides a set of scripts that make it easier to create translations without using "gettext" directly.
Steps Overview

Use git to pull repository version of Flowblade
Use the provided scripts to create a translation template for your language
Edit the created template to create the translation and compile .mo file from it to see your work
Send the created .po file to project lead

1. Use git to pull repository version of Flowblade

To create a translation you should probably first install the repository version of Flowblade using git so that you can edit and compile the translation file Flowblade.po, see Install Instructions.
2. Use the provided scripts to create a translation template for your language

Open Flowblade and select Help -> Runtime Environment from menu to see the two letter locale code for your OS install. For example fr for French, fi for Finnish etc. Information is under the header General.
Open terminal in folder .../flowblade-trunk/Flowblade/locale that can be found in the folder you installed repository version of Flowblade in.
To create a new translation give a command in the terminal:

./add_language LANGUAGE_CODE

in which LANGUAGE_CODE is the two letter language code for your locale.
3. Edit the created template to create the translation and compile .mo file from it to see your work

A folder named with the LANGUAGE_CODE for your language can be found in the /locale folder
Inside that folder is a /LC_MESSAGES folder in which there is a file called Flowblade.po. This is the file used to create the translation.
Open the file Flowblade.po in a text editor. Translations are given by writing the the translations inside quotes on lines staring with text msgstr. To traslate the menu item Open... you would need to fill the msgstr in example below:

#: useraction.py:489
msgid "Open.."
msgstr ""

To see the translations in the application, you need to compile them into a machine readable .mo file. Go to /locale folder and give command:

./compile_language LANGUAGE_CODE

Launch repository version of Flowblade to view your translations.

4. Contributing a translation

Send the created Flowblade.po file to janne.liljeblad@gmail.com or submit a Github pull request. Please mention words Flowblade, translation and the LANGUAGE_CODE in the subject line. Translation will be in the next release.
Updating translation

If a translation already exists and you want to update it:

Go to the /locale folder and give command:

./update_language LANGUAGE_CODE

Translate application as described above.
昐高人相助。謝謝。
我是初学python的新手,希望得到大家的耐心指教,先感谢大家对我的付出!
头像
驿窗project
帖子: 225
注册时间: 2019-01-17 12:17
系统: Arch/Debian
联系:

Re: 求flowblade movie editor的中文翻譯

#2

帖子 驿窗project » 2019-01-19 6:53

如果您希望将Flowblade翻译成您的语言,您可以通过使用您的语言提供Flowblade的翻译来提供帮助。

Flowblade使用标准的GNU“gettext”实用程序来翻译应用程序。 GNU“gettext”是一个相对复杂的工具,但Flowblade提供了一组脚本,可以在不直接使用“gettext”的情况下更轻松地创建翻译。
步骤概述

使用git来提取Flowblade的存储库版本
使用提供的脚本为您的语言创建翻译模板
编辑创建的模板以创建翻译并从中编译.mo文件以查看您的工作
将创建的.po文件发送给项目负责人

1.使用git提取Flowblade的存储库版本

要创建翻译,您应该首先使用git安装Flowblade的存储库版本,以便您可以编辑和编译转换文件Flowblade.po,请参阅安装说明。
2.使用提供的脚本为您的语言创建翻译模板

打开Flowblade并从菜单中选择Help - > Runtime Environment,查看操作系统安装的双字母区域设置代码。例如fr为法语,fi为芬兰语等。信息在标题General下。
在文件夹中打开终端... / flowblade-trunk / Flowblade / locale,可以在您安装Flowblade的存储库版本的文件夹中找到。
要创建新翻译,请在终端中输入命令:

./add_language LANGUAGE_CODE

其中LANGUAGE_CODE是您的语言环境的双字母语言代码。
3.编辑创建的模板以创建转换并从中编译.mo文件以查看您的工作

可以在/ locale文件夹中找到以您的语言使用LANGUAGE_CODE命名的文件夹
在该文件夹中是/ LC_MESSAGES文件夹,其中有一个名为Flowblade.po的文件。这是用于创建翻译的文件。
在文本编辑器中打开文件Flowblade.po。通过在带有文本msgstr的行上写下引号内的翻译来给出翻译。要翻译菜单项Open ...您需要在下面的示例中填写msgstr:

#:useraction.py:489
msgstr“Open......”
msgstr“”

要查看应用程序中的翻译,您需要将它们编译为机器可读的.mo文件。转到/ locale文件夹并发出命令:

./compile_language LANGUAGE_CODE

启动Flowblade的存储库版本以查看您的翻译。

4.贡献翻译

将创建的Flowblade.po文件发送到janne.liljeblad@gmail.com或提交Github pull请求。请在主题行中提及Flowblade,翻译和LANGUAGE_CODE。翻译将在下一个版本中发布。
更新翻译

如果翻译已存在且您想要更新它:

转到/ locale文件夹并发出命令:

./update_language LANGUAGE_CODE

翻译流程大致如上所述。

======

我用google翻译,改了几个字,看看通不通~
回复