Bug 1513 - In French version, "Guest account" is not translated into "Compte invité"
Summary: In French version, "Guest account" is not translated into "Compte invité"
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Damien Lallement
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 22:37 CEST by Sébastien Chopin
Modified: 2011-12-28 01:01 CET (History)
3 users (show)

See Also:
Source RPM: xguest
CVE:
Status comment:


Attachments

Description Sébastien Chopin 2011-06-01 22:37:20 CEST
DVD 64bits, Mageia 1
Into KDM and GDM, with French language, "Guest account" is not translated into "Compte invité".
Manuel Hiebel 2011-06-01 22:38:55 CEST

Component: Release (media, process) => RPM Packages
Hardware: x86_64 => All
Source RPM: (none) => xguest

Manuel Hiebel 2011-06-13 13:36:49 CEST

CC: (none) => mageia-i18n

Remco Rijnders 2011-08-23 08:27:37 CEST

CC: mageia-i18n => (none)
Assignee: bugsquad => mageia-i18n

Manuel Hiebel 2011-11-01 00:49:51 CET

Assignee: mageia-i18n => bugsquad

Comment 1 Marja Van Waes 2011-12-27 12:51:24 CET
Nothing happened to the xguest package since it was imported.
No maintainer for xguest.

@ Oliver

Would this be something Kamil could fix? I know he doesn't speak French, but the translation is already here :)

CC: (none) => marja11, oliver.bgr

Comment 2 Damien Lallement 2011-12-27 14:25:59 CET
Hard task...
I tried to do something in the past (even in Mandriva).
Spec is:
[...]
#!/bin/sh
groupdel xguest 2>/dev/null
userdel -r xguest 2>/dev/null

useradd -s /bin/rbash -K UID_MIN=61000 -K UID_MAX=65000 -K GID_MIN=61000 -K GID_MAX=65000 %grp_option -p '' -c "Guest Account" xguest || :
[...]

So hard to fix it!
I'm working on it. If something is possible, I will patch xguest.
Or if Oliver or Kamil want to deal with it... Go ahead! :-)

CC: (none) => mageia

Comment 3 Damien Lallement 2011-12-27 16:17:09 CET
Fix in Cauldron.
Can you test please? http://svnweb.mageia.org/packages?view=revision&revision=188172
Thanks for the bug report.
Damien Lallement 2011-12-27 16:20:31 CET

Assignee: bugsquad => mageia

Comment 4 Marja Van Waes 2011-12-27 16:44:58 CET
(In reply to comment #3)
> Fix in Cauldron.
> Can you test please?
> http://svnweb.mageia.org/packages?view=revision&revision=188172
> Thanks for the bug report.

adding some French bug squad members to the cc, in case Sébastien doesn't have cauldron :)

CC: (none) => manuel, stormi, thierry.vignaud

Comment 5 Damien Lallement 2011-12-27 17:38:58 CET
I'm a French guy. ;-)
Comment 6 Manuel Hiebel 2011-12-27 17:48:38 CET
After an remove and resinstall it's work, thanks.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Oliver Burger 2011-12-27 23:28:15 CET
I haven't tested yet. So it is translatable to all languages now? Or just for French?
Where is the pot file?

Oliver
Comment 8 Manuel Hiebel 2011-12-27 23:50:44 CET
It's only in the spec. 

With what I understand the rpm check the locale variable and then use the correct string in the useradd script

http://svnweb.mageia.org/packages/cauldron/xguest/current/SPECS/xguest.spec?view=markup

	case \$(env | grep -m 1 -i lang | cut -d= -f2 | cut -d. -f1) in
58 	fr_FR) comment_xguest="Compte invité";;
59 	de_DE) comment_xguest="Gast-Account";;
60 	es_ES) comment_xguest="Cuenta invitado";;
61 	pt_PT) comment_xguest="Conta convidado";;
62 	*) comment_xguest="Guest Account";;
63 	esac
64 	
65 	useradd -s /bin/rbash -K UID_MIN=61000 -K UID_MAX=65000 -K GID_MIN=61000 -K GID_MAX=65000 %grp_option -p '' -c "\$comment_xguest" xguest || :
Manuel Hiebel 2011-12-27 23:51:07 CET

CC: manuel, stormi, thierry.vignaud => (none)

Comment 9 Oliver Burger 2011-12-27 23:54:53 CET
Ah, I see.
Not really comfortable for i18n but we can manage.
Comment 10 Oliver Burger 2011-12-27 23:59:39 CET
Another question:
For some languages like pt there may really be differences between the flavours of the language, in case of de that's different.
So the translation for de_AT and de_CH (and de_WHATEVER) should be the same as for de_DE.
How to handle that?
Comment 11 Manuel Hiebel 2011-12-28 00:48:24 CET
using regex should work so:

s/de_DE)/de_*)/
Comment 12 Oliver Burger 2011-12-28 01:01:00 CET
The regexp would be

de_.* not de_*

but that doesn't really matter. I'll try locally.

Oliver

Note You need to log in before you can comment on or make changes to this bug.