After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138731 - Desktop font cannot be gettextixed.
Desktop font cannot be gettextixed.
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Desktop
unspecified
Other All
: High normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-01 08:48 UTC by Takao Fujiwara
Modified: 2005-05-12 15:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch for apps_nautilus_preferences.schemas.in (639 bytes, patch)
2004-04-01 08:49 UTC, Takao Fujiwara
accepted-commit_now Details | Review
patch for apps_nautilus_preferences.schemas.in (813 bytes, patch)
2004-08-12 09:18 UTC, Takao Fujiwara
accepted-commit_now Details | Review
Proposed patch to revert localisation of font name and change translator comment (3.66 KB, patch)
2005-05-11 14:57 UTC, David Zeuthen (not reading bugmail)
none Details | Review

Description Takao Fujiwara 2004-04-01 08:48:11 UTC
Description of Problem:
Desktop font is 'Sans 10' by default and it 
cannot be gettextized.

Steps to reproduce the problem:
1. Invoke 'intltool-update --pot' in nautilus/po.

Actual Results:
Cannot derive the string 'Sans 10' from 
libnautilus-private/apps_nautilus_preferences.schemas.in
and localize the default font.

Expected Results:
Update .po file and merge 
apps_nautilus_preferences.schemas with 
apps_nautilus_preferences.schemas.in and .po 
files.

How often does this happen? 
When need localize nautilus.

Additional Information:
I attached the patch.
Comment 1 Takao Fujiwara 2004-04-01 08:49:32 UTC
Created attachment 26197 [details] [review]
patch for apps_nautilus_preferences.schemas.in
Comment 2 Dave Camp 2004-04-26 20:19:19 UTC
Comment on attachment 26197 [details] [review]
patch for apps_nautilus_preferences.schemas.in

Looks ok to me, although it breaks i18n freeze.  Go ahead and commit this after
we branch, or if you want to get release-team and i18n team approval for it, go
for it.
Comment 3 Christian Neumair 2004-05-08 18:01:51 UTC
Please add a verbose comment above the string before committing the patch.

regs,
 Chris
Comment 4 Takao Fujiwara 2004-05-10 01:35:40 UTC
Originally this patch is needed by the issue that the default font size is too 
large on a locale. The font size should be handled by locale and schemas.in has 
the logic.

If the patch is not applied, when invoke 'intltool-update $locale' in 
$nautilus_dir/po, ${locale}.po cannot be added 'Sans 10' at the msgid.
So whenever invoke 'make apps_nautilus_preferences.schemas' in 
$nautilus_dir/libnautilus-private, cannot configure the default size by locale.

If the patdh is applied, when add the path of 
libnautilus-private/apps_nautilus_preferences.schemas in 
$nautilus_dir/POTFILES.in and invoke 'intltool-update $locale', then the msgid 
'Sans 10' is added into ${locale}.po. So we can change the default font size by 
locale in po files.
After the modifications are complited, when invoke 'make 
apps_nautilus_preferences.schemas' in $nautilus_dir/libnautilus-private, 
we can configure the default size by locale.
Comment 5 Christian Neumair 2004-07-24 13:57:37 UTC
Comment on attachment 26197 [details] [review]
patch for apps_nautilus_preferences.schemas.in

You misunderstood me :D. I totally knew how it worked, I just wanted you to add
a translator comment above the string that is extracted by gettext.
BTW: You can commit this patch to nautilus HEAD as it isn't string frozen :).

regs,
 Chris
Comment 6 Takao Fujiwara 2004-08-12 09:18:53 UTC
Created attachment 30460 [details] [review]
patch for apps_nautilus_preferences.schemas.in

Sorry for my late response and misunderstandings.
I updated the patch with comments. Please review it.

I don't have the right to commit patches so could you put back it instead of
me?
Comment 7 Alexander Larsson 2004-12-16 18:15:45 UTC
Why do translations need to change the default desktop font?
Comment 8 Takao Fujiwara 2004-12-17 08:52:55 UTC
Sans is a virtual so the actual used font is different between locales.
The appearance is different per font so some locale wants to samll fonts by
default  and other locales keep the defualt size, then the better solution is to
provide to customize font names and font sizes by lcoale.
Comment 9 Martin Wehner 2005-02-05 02:18:06 UTC
Committed on HEAD - Thanks.
Comment 10 Alexander Larsson 2005-05-06 09:07:47 UTC
This change isn't liked by some translators, and seems to lead to inconsistently
looking desktops.

See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154185 for some details.

It seems the original reason for this was to change the font size. Maybe we
should just translate the font size?
Comment 11 David Zeuthen (not reading bugmail) 2005-05-11 14:57:28 UTC
Created attachment 46336 [details] [review]
Proposed patch to revert localisation of font name and change translator comment

Here is a patch. OK to commit on HEAD and gnome-2.10 branch? As noted in 

 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154185

this patch also fixes the gu locale.
Comment 12 Alexander Larsson 2005-05-12 07:14:58 UTC
Looks good to me. Please commit.
Comment 13 David Zeuthen (not reading bugmail) 2005-05-12 14:41:22 UTC
Hi. I've committed the patch in comment 11 to HEAD and something similar to the
gnome-2-10 branch.