Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

values-zh-rCN/strings.xml #18

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

1457384613gh
Copy link

values-zh-rCN/strings.xml

@@ -0,0 +1,297 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file should be located to app/src/main/res/values-zh-rCN/strings.xml.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my god!
I am going to…

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="please_note_that_you_must_prov">请注意,您必须提供自己的音频文件</string>
<string name="enable_startup_sound_title">在『时髦达客坞』启动时,播放自定义音频文件*</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should translate Dock to 『时髦达客坞』. It's better to keep it.

<string name="please_note_that_you_must_prov">请注意,您必须提供自己的音频文件</string>
<string name="enable_startup_sound_title">在『时髦达客坞』启动时,播放自定义音频文件*</string>
<string name="startup_sound_title">设置『启动音』</string>
<string name="enable_usb_sound_title">插入『USB设备』时,播放自定义音频文件</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

播放自定义音频 might be cleaner.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other similar translations might need the same change.

<string name="enable_startup_sound_title">在『时髦达客坞』启动时,播放自定义音频文件*</string>
<string name="startup_sound_title">设置『启动音』</string>
<string name="enable_usb_sound_title">插入『USB设备』时,播放自定义音频文件</string>
<string name="usb_sound_title">设置『USB设备音效』</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

设置 -> 选择

<string name="enable_charge_sound_title">接通电源时,播放自定义音频文件</string>
<string name="charge_sound_title">选择『充电提示音』</string>
<string name="enable_charge_complete_sound_title">设备结束充电后,播放自定义音频文件*</string>
<string name="charge_complete_sound_title">选择『断电提示音』</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

充电完成提示音

<string name="notification_timeout_title">通知显示时间(毫秒)</string>
<string name="show_ongoing_title">显示正在进行的通知(buggy)</string>
<string name="blocked_notifications_hint">android</string>
<string name="blocked_notifications_summary">要忽略的通知,以空格分隔的包名称列表</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要忽略通知的应用列表,包名以空格分割

<string name="app_terminal_title">终端</string>
<string name="app_rec_title">屏幕录制</string>
<string name="apps">Apps</string>
<string name="enable_menu_recents_title">菜单键显示『近期应用』</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add 启用

<string name="enable_menu_recents_title">菜单键显示『近期应用』</string>
<string name="general">全局</string>
<string name="material_u">Material You</string>
<string name="usage_stats">使用情况访问权限</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用情况统计?

<string name="allows_to_show_recent_apps_on_">允许在无法将『时髦达客坞』安装为系统应用的设备上显示『近期应用』</string>
<string name="allow_sysapp_uninstall_title">允许卸载系统应用</string>
<string name="allow_sysapp_uninstall_summary">请小心,这可能很危险</string>
<string name="running_apps_number_summary">此设置可以帮助屏幕较小的设备避免程序坞上的应用程序溢出</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

溢出 -> 覆盖?or 显示异常?

<string name="allow_sysapp_uninstall_title">允许卸载系统应用</string>
<string name="allow_sysapp_uninstall_summary">请小心,这可能很危险</string>
<string name="running_apps_number_summary">此设置可以帮助屏幕较小的设备避免程序坞上的应用程序溢出</string>
<string name="running_apps_number_title">显示正在运行/最近使用的应用数</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

正在运行/最近使用的应用数量?

<string name="running_apps_number_summary">此设置可以帮助屏幕较小的设备避免程序坞上的应用程序溢出</string>
<string name="running_apps_number_title">显示正在运行/最近使用的应用数</string>
<string name="tint_indicators_title">色调指示器</string>
<string name="none">None</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无?

@1457384613gh 1457384613gh changed the title values-zh-rCN/strings.xml app/src/main/res/values-zh-rCN/strings.xml Feb 18, 2023
@1457384613gh 1457384613gh changed the title app/src/main/res/values-zh-rCN/strings.xml values-zh-rCN/strings.xml Feb 18, 2023
@axel358
Copy link
Owner

axel358 commented Feb 18, 2023

@1457384613gh You can grab/build one from the Github Actions tab

Copy link

@utzcoz utzcoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Almost of it looks great. But I think there are something need to be polished.

<string name="terminal_package_hint">com.termux</string>
<string name="terminal_package_title">『终端』的 App包名称</string>
<string name="enable_expand_notifications_title">「修饰键+N」打开『通知面板』</string>
<string name="enable_ctrl_back_title">「右Ctrl键」作为『返回键』</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space for Ctrl?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“Ctrl键”是个专有名词。
“Ctrl_键”可好?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中英文混杂的情况是需要统一的。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文单词为“偏”、中文词语为“正” 的 偏正短语当中,用下划线隔开,可以吗?

例如:
“apple”为偏,作修饰语;“树”为正,作中心语。
“那 apple 树又高又大!”,给人的感觉,“apple” 又高又大,“树”又高又大。
“那 apple_树 又高又大!”,给人的感觉,“树”又高又大;哪种树?“apple”的树。

<string name="notification_sound_title">选择『通知音效』</string>
<string name="enable_charge_sound_title">接通电源时,播放自定义音频</string>
<string name="charge_sound_title">选择『充电提示音』</string>
<string name="enable_charge_complete_sound_title">设备结束充电后,播放自定义音频*</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why there is a * at the end?

Copy link
Author

@1457384613gh 1457384613gh Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这条确实要标星号,英文那里也有啊,因为是实验性功能啊,大哥。
Screenshot_2023-02-19-09-45-17-860_com.github.android-edit.jpg

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

明白了,那保持原样就行了。

<string name="enable_corner_bottom_right_summary">将鼠标放在屏幕右下角以锁定屏幕</string>
<string name="hot_corners_delay_title">『边角热区』激活延迟(毫秒)</string>

<string name="a_launcher_for_android_x86_by_">由 Axel358 开发的,适用于安卓x86的桌面</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space for x86?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“安卓x86”是个专有名词,空格隔开后怪怪的。
“安卓_x86”可好?
“安卓-x86”可好?
Screenshot_2023-02-19-09-53-28-977_com.android.browser-edit.jpg

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


<string name="a_launcher_for_android_x86_by_">由 Axel358 开发的,适用于安卓x86的桌面</string>
<string name="special_thanks_to">特别感谢</string>
<string name="k_s_maan_nblisslabs_project">K S Maan \nBliss Labs 合作的项目</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to keep Bliss Labs project.

<string name="special_thanks_to">特别感谢</string>
<string name="k_s_maan_nblisslabs_project">K S Maan \nBliss Labs 合作的项目</string>
<string name="help">帮助</string>
<string name="smart_dock_its_free_and_open_">SmartDock\n时髦达客坞 \n它是开源并且免费的;在 GitHub 托管代码接受开源贡献</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about keeping the origin English name for this app?

<string name="allow_broadcasts_title">允许 Apps 向『通知面板』发送广播</string>
<string name="allow_broadcasts_summary">向 Apps 汇报情况,例如打开 App抽屉时发送广播;要求重新启动</string>
<string name="allow_app_freeze_title">显示「停用」选项</string>
<string name="allow_app_freeze_summary">您将需要一个外部工具来重新启用应用程序,例如『冰箱❄️』(或执行pm enable [pkgname])</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend to keep Ice Box instead of translating it to 冰箱.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我手机里的,就是叫冰箱啊,你看啦!
Screenshot_2023-02-19-09-47-19-276_com.miui.home-edit.jpg

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果这个应用有中文翻译名,那么把应用名称后面的 icon 去掉就行,毕竟有的人可能会直接复制去搜索应用,添加额外的 icon 会增加搜索难度。



<string name="app_name">时髦达客坞</string>
<string name="accessibility_service_description">允许执行返回等操作</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format

<string name="grant">允许</string>


<string name="app_name">时髦达客坞</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend to keep the origin app name.

Copy link
Author

@1457384613gh 1457384613gh Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

人家难得想了个中英文押韵的名称欸!

  • “时髦_Dock”呢?
  • “时髦坞”呢?
  • “智能_Dock”呢?
  • “智能坞”呢?
  • “S助理”呢?
  • “底栏呢?”呢?
    大哥,要不你起一个呗!
    有中文名的App,用户会变多的。

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得之前的名字就挺好的。比如 Taskbar 这个应用中文名还是 Taskbar,并没有改名字。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所以用户不喜欢使用啊。
用户讨论起来不方便啊。

A:“欸,那个 安卓叉八六的那个透明的任务栏叫什么来着?是哪一个?”
B:“哦,你说的那个啊!我想一下。应该是叫,梯-欸-欸丝-剋-逼-欸-耳。”

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think SmartDock is too simple for discussion. Anyway, you can keep it you still want to give it a Chinese name for forks that don't want to use its simple English name. I just provide my suggestions for @axel358 's request.

<string name="dock_square_title">禁用任务栏圆角</string>
<string name="show_current_title">隐藏当前应用的通知</string>
<string name="enable_notif_panel_title">启用『通知面板』</string>
<string name="enable_qs_wifi_title">显示 WLAN图标</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space for WLAN.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“WLAN_图标”可好?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“显示 WLAN 图标”

<string name="enable_qs_pin_summary">您仍然可以通过长按或者使用键盘快捷键去固定/取消固定任务栏</string>
<string name="enable_take_screenshot_title">「修饰键+K」进行截图</string>
<string name="enable_toggle_pin_title">「修饰键+W」固定/取消固定任务栏</string>
<string name="contributors">贡献者👨‍💻</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend to remove icon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂🤣😂🤣😂
再删就没了,就“贡献者”这里,有代表程序员的 emoji。

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果原先内容没有 icon,翻译的时候也没必要添加。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你的意思是,英文那里,也要加emoji?

@utzcoz
Copy link

utzcoz commented Feb 19, 2023

@axel358 @ilhan-athn7 @electrikjesus Could I add here an emoji of programmer? It will be so cute!

Screenshot_2023-02-19-10-10-15-372_com.github.android-edit.jpg

I think one of the rule of translating strings for different language is to keep the same and polish it with native language. If you want to add this icon/emoji, you need to add it to the origin content.

@electrikjesus
Copy link
Collaborator

I would agree with Utzcoz, it's not recommended to add differences in string translations unless it is a dialect or change in meaning (avoiding slang, etc). If you are proposing to add an emoji to the contributor string, then you will need to do it for all languages in order to be considered for review.

<string name="enable_open_assist_title">Enable Modifier+A to launch your default assistant app🎙️</string>
<string name="enable_open_rec_title">Enable Modifier+R to launch your default screen recorder app📹️</string>
<string name="app_browser_title">Web browser🌐</string>
<string name="app_files_title">Files🗂️</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you decide to add emojis for almost of origin English strings?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I recommend you to add Chinese translation at this PR only. And you can send a new PR to add emojis for existing strings because there are other language translations that you need to update together too.

Copy link
Author

@1457384613gh 1457384613gh Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我还希望,可以显示USB设备的图标,点击还有“安全弹出USB设备”的菜单呢!
总是会有新接口,新功能的,翻译总是需要更新的,没有一劳永逸的。
既然如此,其他语言的,就等到开发了新功能以后,翻译新功能的时候,一起添加 emoji 呗。
再说了,emoji 又不是不会更新。总有可以进一步优化 emoji 表达的语句。
就是想,赶紧发布一个能上手体验的。
没有体验,始终都是纸上谈兵的感觉。都没有亲眼看到真实效果。
许多 emoji 需要根据真实使用的效果,进行优化。

Copy link
Author

@1457384613gh 1457384613gh Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我想,我知道怎么做了。原来,还可以在自己的分支里,使用 action 功能。

@axel358
Copy link
Owner

axel358 commented Feb 19, 2023

@1457384613gh U might need to use another device like your phone for testing or completly remove Smart Dock previous version before installing

@axel358
Copy link
Owner

axel358 commented Feb 20, 2023

@1457384613gh I might have forgotten to extract those strings. I'll do it as soon as i can

@@ -12,16 +12,16 @@
<string name="enable_charge_complete_sound_title">设备结束充电后🔋,播放自定义音频*🔊</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use Chinese in commit title/message. Please keep to use English for commit title and message.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@axel358
Copy link
Owner

axel358 commented Feb 22, 2023

@1457384613gh Those strings are unused

@axel358
Copy link
Owner

axel358 commented Feb 22, 2023

@1457384613gh Ill do some cleanup when i have thr time, just ignore them

@utzcoz
Copy link

utzcoz commented Feb 26, 2023

@1457384613gh Looks like you modified XML files have incorrect format content.

<string name="allow_sysapp_uninstall_summary">Please be careful, this can be really dangerous</string>
<string name="running_apps_number_summary">This setting can help devices with smaller screens avoid app overflow on the Dock</string>
<string name="running_apps_number_title">Number of running/recent apps to show</string>
<string name="tint_indicators_title">Tint running indicators</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not permitted to change English strings.xml format.

<string name="move_to_system_title">Move as system app</string>
<string name="move_to_system_summary">Move Smart Dock as a system app. Android will 🔄restart</string>
<string name="soft_reboot_title">Soft reboot now</string>
<<string name="soft_reboot_summary">Soft 🔄reboot now. You will lose all unsaved work</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's obvious that there is an extra <.

@utzcoz
Copy link

utzcoz commented Feb 26, 2023

@1457384613gh It's recommended to let your PR as small as possible. Actually your later changes make your PR become more difficult to review, and it reduces the possibility of merging your PR.

@1457384613gh
Copy link
Author

1457384613gh commented Feb 26, 2023

@axel358 @electrikjesus
Do you agree to it?

It is that Edit the translation file in the order of the App's framework.

Its advantage is that

  • The entropy is low.
  • It is very convenient to translate.
  • Avoid translations failing to correspond to real functions

image

How to check

Intall this apk to check.
app-release_sign.zip

@axel358
Copy link
Owner

axel358 commented Feb 26, 2023

@1457384613gh Please keep the structure of the original strings.xml as it is. I agree that grouping strings is a good idea but is making it harder for us to review and merge your PR. Please remove all the emojis. Just limit yourself to translating the original english strings withput adding any extras. Over the course of next week i'll ask @utzcoz to review this PR one last time. If there are still issues we'll have to close it

@axel358
Copy link
Owner

axel358 commented Feb 26, 2023

@1457384613gh In the future i might implement your idea of grouping strings.

@1457384613gh
Copy link
Author

1457384613gh commented Feb 26, 2023

The origin is hard for us to translate.
I have already achieved it with entropy low.
I can delete all emoji into English strings for you, but I don't want to delete all into zh strings.
It is beacause it is convenient to read with emoji and emoji can break the sentence to make it more understandable.

I always think "to check" is easier than "to edit" for you;
And "to edit" is harder than "to check" for you.

If easy, you could have done it before.

@axel358
Copy link
Owner

axel358 commented Feb 26, 2023

@1457384613gh I extacted the missing strings and removed unused ones, thanks for pointing those out. About the emojis, Smart Dock is used by many different. What you might find cool others might find rude. That's why we gotta try to keep the language as polite and neutral as possible, so that everyone is happy :)

@1457384613gh
Copy link
Author

Screenshot_2023-02-27-00-19-39-858_qukp.joguidhbveoflo-edit.jpg

How about to add a function to select a language?

  • English
  • English with emoji
  • Other
  • Other with emoji

@1457384613gh
Copy link
Author

value/strings.xml is without any emoji, now.
Emoji is only into value-en-rHK and value-zh-rCH.
Worldwide English is without emoji; Hong Kong English is with emoji.
@axel358 @utzcoz

@1457384613gh
Copy link
Author

Line 255, Use a custtom status bar height when calculating maximized window size
Line 257, Icons to hide from the status bar
Line 258, Blacklisted icons
Line 259, null
Give their string name-s there.
@axel358
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants