平方X 发表于 2017-9-3 12:18:10

AndroidStudio翻译(3)-ActionsBundle中文翻译

# AndroidStudio翻译(3)-ActionsBundle中文翻译
>本文由平方X发表于平方X网,转载请注明出处。[http://blog.pingfangx.com/2355.html](http://blog.pingfangx.com/2355.html)

# 0x01 准备词库
## 1.1 原始文件
* 原始文件 ActionsBundle_en.properties
* 汉化文件 ActionsBundle_unicode.properties
* 转为中文 ActionsBundle_cn.properties

## 1.2 断句
有的英文是多个句子,相应的中文也应该断为多个句子。方便OmegaT处理。
* ActionsBundle_cn_split.properties

## 1.3 处理为要导出的文件
* ActionsBundle_cn_modified.properties
### 删除末尾的.或省略号
### 删除快捷方式
### 再次删除末尾的.或省略号,防止之前位于快捷方式之前

## 1.4 导出记忆文件
在之前翻译keymap的时候已经导出过。这里如果要导入,也是要断句、删除、导出。

# 0x02 准备要翻译的文件
## 2.1 添加一些操作,删除等号前后的空格
* ActionsBundle_en_modified_add.properties
## 2.2 翻译前准备
* ActionsBundle_en_add_modified.properties
### 删除末尾的.或省略号
### 删除快捷方式
### 再次删除末尾的.或省略号,防止之前位于快捷方式之前

# 0x03 翻译
* ActionsBundle_en_add_modified_zh_CN.properties

# 0x04 翻译后处理
* ActionsBundle_en_add_modified_zh_CN_add_ellipsis_and_shortcut.properties
* 添加快捷方式
* 添加句号或省略号


# 相关
## 相关源码
(https://github.com/pingfangx/PythonX/blob/feature-android_studio_translator/ToolsX/android_studio_translator/actions_bundle/actions_bundle.py)

## 结果文件
(https://github.com/pingfangx/PythonX/blob/feature-android_studio_translator/ToolsX/android_studio_translator/actions_bundle/data/ActionsBundle_result.properties)

## 序列文章
* (http://blog.pingfangx.com/2353.html)
* (http://blog.pingfangx.com/2354.html)
* (http://blog.pingfangx.com/2355.html)
* (http://blog.pingfangx.com/2356.html)
* (http://blog.pingfangx.com/2357.html)
* (http://blog.pingfangx.com/2358.html)



页: [1]
查看完整版本: AndroidStudio翻译(3)-ActionsBundle中文翻译