Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Ralf Mardorf
On Sat, 14 May 2016 05:53:12 +0200, Ralf Mardorf wrote:
>On Sat, 14 May 2016 05:50:41 +0200, Ralf Mardorf wrote:
>>On Sat, 14 May 2016 05:36:15 +0200, Ralf Mardorf wrote:  
>>>On Sat, 14 May 2016 02:38:09 +, darn urash wrote:
Is it possible that Ubuntu could be just like it's in as OS X, that
even if those directories are translated, you also can access them
using their English names in the terminal?
>>>
>>>I don't know, but perhaps a workaround helps, e.g. a link.
>>>
>>>$ ln -s Chinese documents
>>>
>>>$ ls -ld Chinese ?ocuments 
>>>drwxr-xr-x 2 rocketmouse rocketmouse 4096 May 14 05:32 Chinese
>>>lrwxrwxrwx 1 rocketmouse rocketmouse7 May 14 05:32 documents ->
>>>Chinese drwxr-xr-x 3 rocketmouse rocketmouse 4096 Apr 16 17:42
>>>Documents
>>
>>What happens if you rename Documents to my_documents and then make a
>>link
>>
>>Documents -> my_documents
>>
>>Will the link Documents be renamed to Chinese too, if you switch to
>>Chinese?  
>
>If not, you could generate two links:
>
>Documents -> my_documents
>Chinese -> my_documents

I asked the wrong question. Is it possible to rename the folder
Documents? If so, simply rename it and add the two links. Neither one
nor the other could be overwritten.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Ralf Mardorf
On Sat, 14 May 2016 05:50:41 +0200, Ralf Mardorf wrote:
>On Sat, 14 May 2016 05:36:15 +0200, Ralf Mardorf wrote:
>>On Sat, 14 May 2016 02:38:09 +, darn urash wrote:  
>>>Is it possible that Ubuntu could be just like it's in as OS X, that
>>>even if those directories are translated, you also can access them
>>>using their English names in the terminal?  
>>
>>I don't know, but perhaps a workaround helps, e.g. a link.
>>
>>$ ln -s Chinese documents
>>
>>$ ls -ld Chinese ?ocuments 
>>drwxr-xr-x 2 rocketmouse rocketmouse 4096 May 14 05:32 Chinese
>>lrwxrwxrwx 1 rocketmouse rocketmouse7 May 14 05:32 documents ->
>>Chinese drwxr-xr-x 3 rocketmouse rocketmouse 4096 Apr 16 17:42
>>Documents  
>
>What happens if you rename Documents to my_documents and then make a
>link
>
>Documents -> my_documents
>
>Will the link Documents be renamed to Chinese too, if you switch to
>Chinese?

If not, you could generate two links:

Documents -> my_documents
Chinese -> my_documents

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Ralf Mardorf
On Sat, 14 May 2016 05:36:15 +0200, Ralf Mardorf wrote:
>On Sat, 14 May 2016 02:38:09 +, darn urash wrote:
>>Is it possible that Ubuntu could be just like it's in as OS X, that
>>even if those directories are translated, you also can access them
>>using their English names in the terminal?
>
>I don't know, but perhaps a workaround helps, e.g. a link.
>
>$ ln -s Chinese documents
>
>$ ls -ld Chinese ?ocuments 
>drwxr-xr-x 2 rocketmouse rocketmouse 4096 May 14 05:32 Chinese
>lrwxrwxrwx 1 rocketmouse rocketmouse7 May 14 05:32 documents -> Chinese
>drwxr-xr-x 3 rocketmouse rocketmouse 4096 Apr 16 17:42 Documents

What happens if you rename Documents to my_documents and then make a link

Documents -> my_documents

Will the link Documents be renamed to Chinese too, if you switch to Chinese?

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Gunnar Hjalmarsson
On 2016-05-14 04:38, darn urash wrote:
> Hi, There's a problem haunting me for years that If I choose Chinese
> as UI language, the main directories (Documents, Downloads, etc…) are
> also translated. It makes harder for me when I want to 'cd' those
> directories in the terminal, because I have to type them in Chinese.
> 
> There's a little trick can fix this, but it makes directories
> untranslated:

Yes - and that's what you want, isn't it?

> Is it possible that Ubuntu could be just like it's in as OS X, that
> even if those directories are translated, you also can access them
> using their English names in the terminal?

So even if they would appear in Chinese, you'd be able to cd them using
their original English names? Doesn't sound as a high priority feature
to me. Why not just use the English names throughout?

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Ralf Mardorf
On Sat, 14 May 2016 02:38:09 +, darn urash wrote:
>Is it possible that Ubuntu could be just like it's in as OS X, that
>even if those directories are translated, you also can access them
>using their English names in the terminal?  

I don't know, but perhaps a workaround helps, e.g. a link.

$ ln -s Chinese documents

$ ls -ld Chinese ?ocuments 
drwxr-xr-x 2 rocketmouse rocketmouse 4096 May 14 05:32 Chinese
lrwxrwxrwx 1 rocketmouse rocketmouse7 May 14 05:32 documents -> Chinese
drwxr-xr-x 3 rocketmouse rocketmouse 4096 Apr 16 17:42 Documents

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread Michael Loftis
You could also just create a symlink.

On Friday, May 13, 2016, darn urash  wrote:

> Hi,
> There's a problem haunting me for years that If I choose Chinese as UI
> language, the main directories (Documents, Downloads, etc…) are also
> translated. It makes harder for me when I want to 'cd' those directories in
> the terminal, because I have to type them in Chinese.
>
> There's a little trick can fix this, but it makes directories
> untranslated:
> export LANG=en_US
> xdg-user-dirs-gtk-update
> export LANG=zh_CN
>
> Is it possible that Ubuntu could be just like it's in as OS X, that even
> if those directories are translated, you also can access them using their
> English names in the terminal?
> Thanks.
>


-- 

"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Make main directories accessible using English names in the terminal on a Chinese localized UI

2016-05-13 Thread darn urash
Hi,
There's a problem haunting me for years that If I choose Chinese as UI
language, the main directories (Documents, Downloads, etc…) are also
translated. It makes harder for me when I want to 'cd' those directories in
the terminal, because I have to type them in Chinese.

There's a little trick can fix this, but it makes directories untranslated:
export LANG=en_US
xdg-user-dirs-gtk-update
export LANG=zh_CN

Is it possible that Ubuntu could be just like it's in as OS X, that even if
those directories are translated, you also can access them using their
English names in the terminal?
Thanks.
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss