Closed
Bug 995960
Opened 11 years ago
Closed 11 years ago
Hide l10n missing keys during make
Categories
(Firefox OS Graveyard :: Gaia::L10n, defect)
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
2.0 S1 (9may)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: daleharvey, Assigned: zbraniecki)
References
Details
Attachments
(2 files)
This is extremely chatty and makes it hard to see errors during the build, we will need some type of flag to enable them for when its important for the person building to see whats missing, but by default there should be less of them
What will work for the l10n devs?
Reporter | ||
Updated•11 years ago
|
Blocks: dale-being-happy
Comment 1•11 years ago
|
||
Isn't it important for every developer to see those errors? We shouldn't have missing keys.
Reporter | ||
Comment 2•11 years ago
|
||
I meant missing translations sorry, for example
/build_stage/system/index.html: [l10n] [ar]: 144 missing compared to en-US: brandShortName, browserBrandShortName, browserBrandFullName, help, skip, asyncpanzoom, asyncpanzoomOff, enableScreenReaderSteps, disableScreenReaderSteps, no-recent-apps, deny, dontshare-geolocation, share-geolocation, dontshare-audio-capture, share-audio-capture, dontshare-video-capture, share-video-capture, dontshare-media-capture, share-media-capture, device-front, device-back, more-info, hide-info, size-unknown, author-unknown, kB, continue, setup, ime-addkeyboards, softwareHomeButton, server-not-found, server-not-found-error, network-error-launching, network-error-in-app, unable-to-connect, check-settings, tap-to-check-settings, transfer-confirmation-title, transfer-confirmation-description, byteUnit-KB, transfer-has-started-title, transfer-has-started-description, transferReport-title, transferReport-description, cannotGetStorageState, sdcard-not-exist2, microphone-is-on, camera-is-on, media-is-on, multiSIMpinTitle, system-alert, cb-channel, icc-message-title, icc-confirmCall-defaultmessage, icc-alertMessage-defaultmessage, icc-confirmMessage-defaultmessage, icc-inputbox-title, emergency-callback-mode, emergency-callback-message, cdma-record-info, ime-switching-title, ime-switching-tip, layout-selection, shrinking-tip, download_started, download_stopped, download_downloading, download_succeeded, download_failed, download_text_by_default, download_downloading_text_2, search-or-enter-address, noSIMCardInHotspot, time_am, time_pm, perm-geolocation-more-info, perm-video-capture, perm-video-capture-appRequest, perm-video-capture-webRequest, perm-audio-capture, perm-audio-capture-appRequest, perm-audio-capture-webRequest, perm-media-capture, perm-media-capture-appRequest, perm-media-capture-webRequest, stopped_download_title, stopped_download_message, stopped_download_left_button, stopped_download_right_button, failed_download_title, failed_download_message, failed_download_left_button, failed_download_right_button, stop_download_title, stop_download_message, stop_download_left_button, stop_download_right_button, delete_download_title, delete_download_message, delete_download_left_button, delete_download_right_button, delete_all_download_title, delete_all_download_left_button, delete_all_download_right_button, delete_all_download_message, unsupported_file_type_download_title, unsupported_file_type_download_message, unsupported_file_type_download_left_button, unsupported_file_type_download_right_button, file_not_found_download_title, file_not_found_download_message, file_not_found_download_right_button, unmounted_sdcard_2_download_title, unmounted_sdcard_2_download_message, unmounted_sdcard_2_download_right_button, no_provider_download_title, no_provider_download_message, no_provider_download_right_button, no_memory_download_title, no_memory_download_message, no_memory_download_right_button, no_sdcard_found_2_download_title, no_sdcard_found_2_download_message, no_sdcard_found_2_download_right_button, file_open_error_download_title, file_open_error_download_message, file_open_error_download_left_button, file_open_error_download_right_button, restart_download_error, no-downloads, percentage, partialResult, summary, download-stopped, download-failed, open_downloaded_file, share_downloaded_file, wallpaper_downloaded_file, ringtone_downloaded_file, cancel_downloaded_file, voicemailNoNumberTitle, voicemailNoNumberText, voicemailNoNumberSettings, voicemailNoNumberCancel
Assignee | ||
Comment 3•11 years ago
|
||
Yeah, we should basically only report it when LOCALE_BASEDIR is set to report missing entities on real localizations, not the mock ones.
Also, this will go away once we land bug 900182.
Assignee | ||
Comment 4•11 years ago
|
||
This patch just turns off debugging unless LOCALE_BASEDIR is set
Comment 5•11 years ago
|
||
Comment on attachment 8407055 [details] [diff] [review]
patch
Review of attachment 8407055 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/l10n.js
@@ +15,5 @@
> requiresInlineLocale = false;
>
> + if (debug) {
> + DEBUG = true;
> + }
Maybe just do | DEBUG = !!debug | ? Up to you.
::: build/webapp-optimize.js
@@ +586,4 @@
> // since l10n.js was read before the document was created, we need to
> // explicitly initialize it again via mozL10n.bootstrap, which looks for
> // *.ini links in the HTML and sets up the localization context
> + var debugL10n = config.LOCALE_BASEDIR ? true : false;
Maybe be a bit more specific here and test if LOCALE_BASEDIR is not an empty string instead of testing for truthiness?
Attachment #8407055 -
Flags: review?(stas) → review+
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Staś Małolepszy :stas from comment #5)
> Comment on attachment 8407055 [details] [diff] [review]
> patch
>
> Review of attachment 8407055 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: build/l10n.js
> @@ +15,5 @@
> > requiresInlineLocale = false;
> >
> > + if (debug) {
> > + DEBUG = true;
> > + }
>
> Maybe just do | DEBUG = !!debug | ? Up to you.
I prefer to leave it to l10n.js. In the future we may want to separate our DEBUG from not reporting buildtime messages.
> ::: build/webapp-optimize.js
> @@ +586,4 @@
> > // since l10n.js was read before the document was created, we need to
> > // explicitly initialize it again via mozL10n.bootstrap, which looks for
> > // *.ini links in the HTML and sets up the localization context
> > + var debugL10n = config.LOCALE_BASEDIR ? true : false;
>
> Maybe be a bit more specific here and test if LOCALE_BASEDIR is not an empty
> string instead of testing for truthiness?
Added to pull request.
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-b2g-v2.0:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S1 (9may)
Assignee | ||
Comment 9•11 years ago
|
||
pushed to l20n.js@gaia repo https://github.com/l20n/l20n.js/commit/f6f5d2065e351ac92f7a2f9603cc4ec930be38e6
You need to log in
before you can comment on or make changes to this bug.
Description
•