"Desktop" is not localized in live mode
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu Kylin |
Low
|
ShuiLu Pi | ||
| | Ubuntu Translations |
Medium
|
Unassigned | ||
| | casper (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
进入live 模式实用,Desktop没有翻
Please see the attached image, all standard folders like Public, Download are localized, but Desktop is not.
| shijing (shijing) wrote : | #1 |
| tags: | added: utopic-pre-alpha1 |
| Changed in ubuntukylin: | |
| importance: | Undecided → Medium |
| tags: | added: l10n |
| Changed in ubuntukylin: | |
| milestone: | none → vivid-alpha1 |
| Changed in ubuntukylin: | |
| assignee: | nobody → lenky0401 (lenky0401) |
| lenky0401 (lenky0401) wrote : | #3 |
查到如下几点:
1,问题确认存在,
2,直接原因来之主目录配置文件
XDG_DESKTOP_
而安装后,桌面的条目对应为:
XDG_DESKTOP_
3,查了xdg-
4,问题在创建默认账号的lig
| lenky0401 (lenky0401) wrote : | #4 |
进入live模式后,通过执行两步:
1,先转为英文
export LANG=en_US.UTF-8
xdg-user-
2,再转为中文
export LANG=zh_CN.UTF-8
xdg-user-
发现Desktop转为中文了
另外,查看代码后,
| Jack Yu (jackyu) wrote : | #5 |
这个问题应该在Ubuntu版本
| Changed in ubuntukylin: | |
| status: | New → Confirmed |
| Jack Yu (jackyu) wrote : | #6 |
请lenky继续分析,
| shijing (shijing) wrote : | #7 |
@lenky 测试Ubuntu 1504 dailybuild 存在此问题。
| lenky0401 (lenky0401) wrote : | #8 |
通过光盘启动后,
在安装界面,如果点击试用而进入
通过分析xdg-
/* New default dir. Check if its an old named dir. We want to
reuse that if it exists. */
compat_dir = lookup_
if (compat_dir)
{
path_name = concat_strings (get_home_dir (), "/", compat_dir->path, NULL);
if (!is_directory (path_name))
{
free (path_name);
path_name = NULL;
}
else
relative_
}
}
if (path_name == NULL)
{
translated_name = localize_path_name (default_
relative_
if (relative_path_name == NULL)
也就是上面代码中,
在安装好系统后,
| lenky0401 (lenky0401) wrote : | #9 |
不知道是哪个进程创建了这个De
但这样做估计有风险,
| lenky0401 (lenky0401) wrote : | #10 |
通过分析iso镜像里的/
前后连起来,就是这个bug的来由。
要解决,需要对casper做国际化。
| Changed in casper (Ubuntu): | |
| assignee: | nobody → lenky0401 (lenky0401) |
| summary: |
- 进入live 模式实用,Desktop没有翻译。 + "Desktop" is not localized in live mode |
| description: | updated |
| Anthony Wong (anthonywong) wrote : | #11 |
idea 1: retrieve the translation from casper script, and replace every instance of "Desktop" to the translated string.
idea 2: at an appropriate moment, executes `xdg-user-
| Dimitri John Ledkov (xnox) wrote : | #12 |
The problem is that casper creates Desktop to add "Install Ubuntu" desktop icon by default I believe.
However, I do agree that translated names should be created on the fly much later after user chooses a new language and language packs are available. Can we make casper add an upstart user session job to force recreate xdg-user dirs at each live user login time?
| jiaowen520li (jiaowen520li) wrote : | #13 |
原本命名为Desktop的图片
测试使用的系统:UbuntuKylin 14.10 Daily-1214 amd64
测试使用的机器:笔记本 HP-Pavilion-
测试使用的安装方式:物理机安装
| Changed in ubuntukylin: | |
| milestone: | vivid-alpha1 → vivid-alpha2 |
| Changed in ubuntukylin: | |
| milestone: | vivid-alpha2 → vivid-beta1 |
| lenky0401 (lenky0401) wrote : | #14 |
一时半会搞不定。
| Changed in ubuntukylin: | |
| milestone: | vivid-beta1 → vivid-beta2 |
| jiaowen520li (jiaowen520li) wrote : | #15 |
This bug still exists in UK15.04-
| Changed in ubuntukylin: | |
| milestone: | vivid-beta2 → none |
| importance: | Medium → High |
| jiaowen520li (jiaowen520li) wrote : | #16 |
This bug still exists in UK15.04-
| jiaowen520li (jiaowen520li) wrote : | #17 |
This bug still exists in UK15.10-
| Changed in ubuntukylin: | |
| milestone: | none → wily-alpha1 |
| tags: | added: wily-alpha1 |
| jiaowen520li (jiaowen520li) wrote : | #18 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #19 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #20 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #21 |
This bug still exists in UK15.10-
| Changed in ubuntukylin: | |
| milestone: | wily-alpha1 → wily-beta1 |
| jiaowen520li (jiaowen520li) wrote : | #22 |
This bug still exists in UK14.04.
| jiaowen520li (jiaowen520li) wrote : | #23 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #24 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #25 |
This bug still exists in UK15.10-
| Changed in ubuntukylin: | |
| milestone: | wily-beta1 → wily-beta2 |
| Changed in ubuntukylin: | |
| milestone: | wily-beta2 → wily-finalrelease |
| jiaowen520li (jiaowen520li) wrote : | #26 |
This bug still exists in UK15.10-
| jiaowen520li (jiaowen520li) wrote : | #27 |
This bug still exists in UK16.04-
| Changed in ubuntukylin: | |
| milestone: | wily-finalrelease → xenial-alpha2 |
| tags: | added: xenial-alpha2 |
| Changed in casper (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in ubuntu-translations: | |
| importance: | Undecided → Medium |
| Changed in ubuntu-translations: | |
| assignee: | nobody → Ubuntu Simplified Chinese Translators (ubuntu-l10n-zh-cn) |
| Changed in ubuntukylin: | |
| milestone: | xenial-alpha2 → xenial-beta1 |
| Changed in ubuntu-translations: | |
| assignee: | Ubuntu Simplified Chinese Translators (ubuntu-l10n-zh-cn) → nobody |
| Changed in ubuntukylin: | |
| milestone: | xenial-beta1 → xenial-beta2 |
| Changed in ubuntukylin: | |
| milestone: | xenial-beta2 → xenial-finalrelease |
| Changed in ubuntukylin: | |
| importance: | High → Low |
| Changed in casper (Ubuntu): | |
| assignee: | lenky0401 (lenky0401) → nobody |
| Changed in ubuntukylin: | |
| assignee: | lenky0401 (lenky0401) → ShuiLu Pi (pishuilu1128) |
| Changed in ubuntukylin: | |
| milestone: | xenial-finalrelease → yakkety-alpha1 |
| jiaowen520li (jiaowen520li) wrote : | #28 |
Live模式下,
test version: ubuntu kylin-yakkety-
| Changed in ubuntukylin: | |
| milestone: | yakkety-alpha1 → yakkety-beta1 |
| Changed in ubuntukylin: | |
| milestone: | yakkety-beta1 → yakkety-beta2 |
| Changed in ubuntukylin: | |
| milestone: | yakkety-beta2 → yakkety-finalrelease |


This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here: iso.qa. ubuntu. com/qatracker/ reports/ bugs/1306866
http://