Author Topic: Localization Manager (addlocale)  (Read 147838 times)

Offline balduro

  • Jr. Member
  • **
  • Posts: 30
Re: Localization Manager (addlocale)
« Reply #420 on: March 05, 2012, 03:20:36 AM »
Sorry if this topic is resolved yet. I haven't found it.

The localization manager script  in pclos 2012 works fine for me, but in the same machine with several accounts, the personal folders are not correctly translated in all cases. General language system settings are fine, but for some users the folders are translated and not for others.

When a user do the first time login, the translate personal folder dialog appears, and works fine, but in another cases it not appear. So it is possible to make the personal folders translation again?


Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: Localization Manager (addlocale)
« Reply #421 on: March 05, 2012, 03:44:35 AM »
Sorry if this topic is resolved yet. I haven't found it.

The localization manager script  in pclos 2012 works fine for me, but in the same machine with several accounts, the personal folders are not correctly translated in all cases. General language system settings are fine, but for some users the folders are translated and not for others.

When a user do the first time login, the translate personal folder dialog appears, and works fine, but in another cases it not appear. So it is possible to make the personal folders translation again?



don't think so but you can do it yourself, it is just renaming some of the directory names.  ;)
-p.

Offline balduro

  • Jr. Member
  • **
  • Posts: 30
Re: Localization Manager (addlocale)
« Reply #422 on: March 05, 2012, 03:57:13 AM »
Well, I know that is not a hard task, but let the users do the task yes (misspellings, uppercases, accents, etc.), and I don't wanna be present each  new account is created.  ;)


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Localization Manager (addlocale)
« Reply #423 on: March 05, 2012, 05:24:12 AM »
Well, I know that is not a hard task, but let the users do the task yes (misspellings, uppercases, accents, etc.), and I don't wanna be present each  new account is created.  ;)

Hi,
Just an idea : have you renamed the folders under /etc/skel ? And edited the file "/etc/skel/.config/user-dirs.dirs" ?





melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline balduro

  • Jr. Member
  • **
  • Posts: 30
Re: Localization Manager (addlocale)
« Reply #424 on: March 05, 2012, 07:09:08 AM »
No, but I'll try.

Under /etc/skel/.config/ does not appear the user-dirs.dirs file, only Trolltech.conf

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Localization Manager (addlocale)
« Reply #425 on: March 05, 2012, 07:36:12 AM »
Where and what files are used in the creation of new user accounts depends on which DE you are using. LXDE uses /etc/skel. This thread may help:     
http://www.pclinuxos.com/forum/index.php/topic,102887.0.html     

I believe KDE uses /etc/xdg. pinoc will know more about that, I think.     

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: Localization Manager (addlocale)
« Reply #426 on: March 05, 2012, 09:38:21 AM »
/etc/skel and /etc/skel/.kde4

Offline balduro

  • Jr. Member
  • **
  • Posts: 30
Re: Localization Manager (addlocale)
« Reply #427 on: March 06, 2012, 02:40:32 AM »
Where and what files are used in the creation of new user accounts depends on which DE you are using. LXDE uses /etc/skel. This thread may help:     
http://www.pclinuxos.com/forum/index.php/topic,102887.0.html     

I believe KDE uses /etc/xdg. pinoc will know more about that, I think.     

Yes Neal, the link describes the issue exactly. So if I understood:

1.- For multiuser system don't run the internationalization script (it works for the current user only).
2.- Run the addlocale in superuser mode
3.- In case of problems rename the folders under /etc/skel (kde in my case)
4.- That's it. All users will have translated language folders.

It is correct?

The aforemetioned link helps me to do customized desktop for all users. These is something that I was looking for (I would like to request a link to assistance in this respect).
Thanks.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Localization Manager (addlocale)
« Reply #428 on: March 06, 2012, 05:26:49 AM »
In terminal/konsole:     
su   <Enter>     
password   (give root password)   <Enter>     
addlocale   <Enter>     

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: Localization Manager (addlocale)
« Reply #429 on: March 06, 2012, 11:50:57 AM »
Where and what files are used in the creation of new user accounts depends on which DE you are using. LXDE uses /etc/skel. This thread may help:    
http://www.pclinuxos.com/forum/index.php/topic,102887.0.html    

I believe KDE uses /etc/xdg. pinoc will know more about that, I think.    

Yes Neal, the link describes the issue exactly. So if I understood:

1.- For multiuser system don't run the internationalization script (it works for the current user only).
2.- Run the addlocale in superuser mode
3.- In case of problems rename the folders under /etc/skel (kde in my case)
4.- That's it. All users will have translated language folders.

It is correct?

The aforemetioned link helps me to do customized desktop for all users. These is something that I was looking for (I would like to request a link to assistance in this respect).
Thanks.



so what is this all about? Just localized a multi-user (KDE) system. After the reboot and upon login into each already existing user-account you will get the dialog asking to translate the user-account directories. In fact, you will get this dialog even for every new login until you either set them to be translated or you do no longer want to be reminded of this option, and I repeat, this happens in each existing user-account. Any user-account which is created after the localization will automatically get the new localized directory names.
Btw, it should be rather obvious that addlocale is always run with root-priviledges, even when run from the user-account (which you should do), that's why you're asked for the root-password.  So, in summary and imo, there is nothing wrong here, all works as expected. You most likely switched the notification for translating the folders off the last time you ran addlocale.
regards,
-p.

update: to have the translation dialog window show up again, open a terminal in the user-account and enter:
Code: [Select]
echo en_US > ~/.config/user-dirs.localethen logout/login. Or put this file with this content into /usr/skel/.config/  (will add it in the next addocale version). Reason: if the current system locale and the one specified in this file are not the same then xdg-user-dirs-gtk-update will launch the translation dialog window.

« Last Edit: March 06, 2012, 01:29:48 PM by pinoc »

Offline balduro

  • Jr. Member
  • **
  • Posts: 30
Re: Localization Manager (addlocale)
« Reply #430 on: March 07, 2012, 05:38:54 AM »

so what is this all about? Just localized a multi-user (KDE) system. After the reboot and upon login into each already existing user-account you will get the dialog asking to translate the user-account directories. In fact, you will get this dialog even for every new login until you either set them to be translated or you do no longer want to be reminded of this option, and I repeat, this happens in each existing user-account. Any user-account which is created after the localization will automatically get the new localized directory names.
Btw, it should be rather obvious that addlocale is always run with root-priviledges, even when run from the user-account (which you should do), that's why you're asked for the root-password.  So, in summary and imo, there is nothing wrong here, all works as expected. You most likely switched the notification for translating the folders off the last time you ran addlocale.
regards,
-p.

update: to have the translation dialog window show up again, open a terminal in the user-account and enter:
Code: [Select]
echo en_US > ~/.config/user-dirs.localethen logout/login. Or put this file with this content into /usr/skel/.config/  (will add it in the next addocale version). Reason: if the current system locale and the one specified in this file are not the same then xdg-user-dirs-gtk-update will launch the translation dialog window.




Thanks for reply pinoc. I resume my experience.
Two systems tested: 1 laptop Intel core2 duo P8400 processor, 3Gb RAM, and a old PC Intel P4 1 Gb RAM.

- Laptop with 3 user accounts.
- PC with 7 user accounts.

This is my experience:
1.- when I run addlocale (superuser of course), it works fine for the current user, and gets the rename folder dialog.
2.- When a new user account is created the dialogs of language settings and keyboards settings are always on, but the rename folder dialog  sometimes. Not for all users (this is bizarre).
3.- In each login the rename folder dialog does not show again (  unchecked remember checkbox ), it is necesary to run the addlocale again.
4.-When I run addlocale for these user, again the dialog settings appears, but the rename folder dialog is not shown in all cases. (sorry but I don't know if this behaviour is random or for the same users).
5.- For the users that the rename dialog worked fine, the /home has duplicate folders, the english original and the translated (I don't know if this is the correct behaviour, however when the addlocale works fine at first there is only a folder version).

I told you, this is my experience.

The rename folders action in /etc/skel/ works fine for new logins, but I guess that is not the purpose of the script.

Regards.

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Localization Manager (addlocale)
« Reply #431 on: March 21, 2012, 01:00:14 AM »
Hi

it seems we have a problem.( not sure if it is addlocale or synaptic or "what"  )

I want to add the Thai language. ( edit: I tried German, Dutch and a few others as well)
I used the script but......... got an error message. ( see below )
I looked on page one ( in this tread ),
I followed advice,..... I opened terminal and followed instructions....same error message
From the message I think I understand the script want to access .....distro.ibiblio.org/... tatata..
I changed ( just for checking ) the repos to  distro.ibibli.org/...tatata ( I know, not recommended ) but synaptic
tells me I can not access distro.ibiblio.org
I opened Firefox, and I can access it without any problems.

Started the whole procedure again..........same results

The files th_TH.tar.xz  and  th.txt  are accessible and downloadable
which I did.
I use KDE4
Yes, I am fully updated

Here is the message , using a terminal and typing : addlocale
-------------------------------------
[tony@localhost ~]$ /usr/bin/firefox

Internet connection working

/var/cache/apt/archives/partial found
/usr/bin/addlocale: line 755: [: -eq: unary operator expected
--2012-03-21 04:47:14--  http://distro.ibiblio.org/pclinuxos/addlocale/th.txt
Resolving distro.ibiblio.org (distro.ibiblio.org)... failed: Name or service not known.
wget: unable to resolve host address `distro.ibiblio.org'
/usr/bin/addlocale: line 1492: [: -eq: unary operator expected


The download of the translation archive is incomplete.  This may indicate a temporary server
failure or other network problem.
Please try running addlocale again a little later and we will continue from whatever could be downloaded.

Exiting...
-----------------------------------------------------------------------
this is the repo address I used in synaptic for ibiblio

http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/
pclinuxos/2010
main updates nonfree kde4 games xfce4

clicking on above link ..after --2012-03-21 04:47:14-- gives following message ( if it helps)
REINSTALL="GConf2 accerciser akonadi-googledata alacarte almanah aria2 .......a list of X amount of appz........yakuake yelp yelp-xsl zenity "

I also checked in ......partial : there is nothing


Please advice
Thanks

Xena
« Last Edit: March 21, 2012, 01:02:58 AM by Xenaflux »
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Localization Manager (addlocale)
« Reply #432 on: March 21, 2012, 01:42:29 AM »
Xena,     
It is difficult to download the package lists when I am uploading a new set. ;) Try again.     

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Localization Manager (addlocale)
« Reply #433 on: March 21, 2012, 02:36:45 AM »
OK

I will try again tonight

Thanks
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: Localization Manager (addlocale)
« Reply #434 on: March 21, 2012, 02:40:00 AM »
Xena,     
It is difficult to download the package lists when I am uploading a new set. ;) Try again.     


Hi Xena,
either that or you have a curl-related issue for your internet setup in Thailand (I know you had problems before with that), can you please post your output of:
Code: [Select]
curl -I http://distro.ibiblio.org/pclinuxos/addlocale/de.txtthanks,
-p.