Closed
Bug 386370
Opened 17 years ago
Closed 17 years ago
Provide more localization possibilities
Categories
(Calendar :: Provider: GData, defect)
Calendar
Provider: GData
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Fallen, Assigned: Fallen)
Details
(Whiteboard: [gdata-0.3])
Attachments
(1 file, 2 obsolete files)
14.19 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
Allow description and title localization for mozilla1.8 for gecko 1.9 see [1]. Also adds other preferences in the default prefs file. http://developer.mozilla.org/en/docs/Localizing_extension_descriptions
Attachment #270361 -
Flags: review?(daniel.boelzle)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [l10n impact]
Assignee | ||
Comment 1•17 years ago
|
||
Comment on attachment 270361 [details] [diff] [review] Allow more localization - v1 This patch is not really ready yet. I'd like to have a way to automatically package all locales into the xpi. I at least have found a way to use the new gecko 1.9 install.rdf localization, by putting the following in the Makefile.in (where $(PP) is the preprocessor) XPI_LOCALIZED=$(foreach locale,$(XPI_LOCALES),$(shell $(PP) $(topsrcdir)/calendar/locales/$(locale)/chrome/calendar/providers/gdata/install.rdf)) DEFINES += -DXPI_LOCALIZED='$(XPI_LOCALIZED)' and including @XPI_LOCALIZED@ in the install.rdf Until there is a nice build system way to do it, I'll probably do most of the stuff by hand. I'll update this patch to also include homepageURL a bit later
Attachment #270361 -
Flags: review?(daniel.boelzle)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [l10n impact] → [gdata-0.2.2]
Assignee | ||
Comment 2•17 years ago
|
||
This should do it, all ideas included. * Bump version number * Add AMO properties file * Add extension name/description localization possibilities for both trunk and branch * Build all locales that have gdata localizations automatically, if possible. * Added all prefs to a default prefs file.
Attachment #270361 -
Attachment is obsolete: true
Attachment #271718 -
Flags: review?(daniel.boelzle)
Comment 3•17 years ago
|
||
Comment on attachment 271718 [details] [diff] [review] Allow more localization - v3 Please use the existing calendar/locales/shipped-locales file; r=dbo.
Attachment #271718 -
Flags: review?(daniel.boelzle) → review+
Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 271718 [details] [diff] [review] Allow more localization - v3 After further testing this doesn't quite work as expected. Back to the drawing board...
Attachment #271718 -
Attachment is obsolete: true
Assignee | ||
Comment 5•17 years ago
|
||
To get 0.2.2 out of the door, this patch is basically the previous patch without the build magic. I will use the rest of my patch here in a controlled environment to create the final package. I am carrying forth the r+, since I didn't add anything new to the patch but just took out some pieces.
Attachment #275936 -
Flags: review+
Assignee | ||
Comment 6•17 years ago
|
||
Checked in on HEAD and MOZILLA_1_8_BRANCH -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•17 years ago
|
||
amo.properties is a bit tough on the localization check tools. They currently don't support \ concatenation of lines. Looking at the parsing code we use for real, http://lxr.mozilla.org/mozilla1.8/source/xpcom/ds/nsPersistentProperties.cpp#185, it'll be tricky to fix that, given that we just use regexps. What is amo.properties used for?
Comment 8•17 years ago
|
||
(In reply to comment #7) The ":" also breaks compare locales, resulting in log messages like: Properties in ./chrome/calendar/providers/gdata/amo.properties don't match: In /builds/tinderbox/Sunbird-Mozilla1.8-l10n/Darwin_8.8.1_Clobber/ mozilla/calendar/locales/en-US: (add these to your localization) Please read http Please use http
Assignee | ||
Comment 9•17 years ago
|
||
Axel, I'm sorry for any inconvenience. If I give the file a different ending than .properties, does that help? This file should give localizers the opportunity to localize the descriptions on addons.mozilla.org.
Comment 10•17 years ago
|
||
amo.properties doesn't seem to be used anywhere in the code. Or does addons.mozilla.org automatically creates the page information from amo.properties file? As far as I know the translation of extension descriptions on addons.mozilla.org is / should be independent from the translation of Sunbird/Lightning.
Comment 11•17 years ago
|
||
One way to go about this is to just make compare locales ignore this file. Not sure how terrific that solution would be, but I would like to make the ignore rules be external to the actual compare-locales code anyway. I wouldn't want to fix the perl version, though. Renaming the .properties file would work, too, though that may actually be a disservice to localizers that use tools.
Assignee | ||
Comment 12•17 years ago
|
||
AMO doesn't automatically create this information (although it would be a great idea ;), I would enter this by hand. I just thought it might give localizers more possibilites, since a localizer contacted me by email and asked me what the process is to localize the strings. So possible solutions are: * Remove amo.properties, since its not part of the application * Rename amo.properties to exclude it from the compare locales scripts * Reformat the file to make it readable by the scripts * Make compare-locales ignore the file I don't really mind which solution, I could live well with any.
Comment 13•17 years ago
|
||
(In reply to comment #12) > So possible solutions are: > * Remove amo.properties, since its not part of the application > * Rename amo.properties to exclude it from the compare locales scripts > * Reformat the file to make it readable by the scripts > * Make compare-locales ignore the file I would vote for options 1-3. Of those three I prefer option 1. Reasons: 1. compare-locales is a useful tool for mozilla-based applications, not extensions. It should not be adapted to cater to edge cases from extensions. 2. There might come a time, when we ship Lightning/Sunbird with GDATA support by default. Once this happens this file is obsolete.
Comment 14•17 years ago
|
||
Philipp, can you please act on the amo.properties issue. We'll have a string freeze in about two weeks and many l10n tinderboxen are orange just because of this file. I really don't want to burden localizers with this issue if I can prevent it.
Assignee | ||
Comment 15•17 years ago
|
||
I sure can. I wasn't sure this was a final decision, but it shouldn't hurt to just remove it. -> cvs rm'd amo.properties
Assignee | ||
Updated•17 years ago
|
Whiteboard: [gdata-0.2.2] → [gdata-0.3]
You need to log in
before you can comment on or make changes to this bug.
Description
•