[英]where/how to find/extract official android os (open source) translation/localization/glossary strings
Since the open source android ( https://source.android.com ) is available in multiple languages, can I somehow find/extract all the translated strings in the OS so I can use them as a reference for my own app's translation?由于开源 android ( https://source.android.com ) 有多种语言版本,我能否以某种方式在操作系统中找到/提取所有已翻译的字符串,以便将它们用作我自己的应用程序翻译的参考? (for example for error messages...)
(例如错误消息...)
Or is this list available somewhere?或者这个列表在某处可用?
Probably harder to get, but I'd also like to ask the same question for the official non-open source version...可能更难得到,但我也想为官方的非开源版本问同样的问题......
FYI, I'm not really a developer, just a translator..仅供参考,我不是真正的开发人员,只是一名翻译。
Thanks!谢谢!
Or is this list available somewhere?
或者这个列表在某处可用?
Much of it is on your hard drive.其中大部分都在您的硬盘上。
Go to platforms/.../data/res/
inside of your Android SDK, where ...
is a directory based on the Android version you want (eg, android-25
for Android 7.1).转到Android SDK 中的
platforms/.../data/res/
,其中...
是基于您想要的Android 版本的目录(例如,Android 7.1 的android-25
)。 There, you will see a set of resource directories, just like the ones that you might have in your own project.在那里,您将看到一组资源目录,就像您在自己的项目中可能拥有的目录一样。 This includes hundreds upon hundreds of
values-.../
directories, mostly for various languages.这包括成百上千个
values-.../
目录,主要用于各种语言。 Those will each have a strings.xml
file with various strings from the Android framework and elsewhere within Android.它们每个都有一个
strings.xml
文件,其中包含来自 Android 框架和 Android 其他地方的各种字符串。
AOSP apps will have their own translations, and you would need to rummage around those projects for theirs. AOSP 应用程序将有自己的翻译,您需要为他们的项目翻遍这些项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.