Search completed in 1.15 seconds.
157 results for "localized":
Your results are loading. Please wait...
nsIPrefLocalizedString
modules/libpref/public/nsipreflocalizedstring.idlscriptable this interface is simply a wrapper interface for nsisupportsstring so the preferences service can have a unique identifier to distinguish between requests for normal wide strings nsisupportsstring) and 'localized' wide strings, which get their default values from properites files.
Localization - Archive of obsolete content
localized strings translated strings are kept in a directory called "locale" under your main add-on directory, one file for each locale.
... using localized strings in html this example uses the action button api, which is only available from firefox 29 onwards.
... to reference localized strings from html, add a data-l10n-id attribute to the html tag where you want the localized string to appear, and assign the identifier to it: <html> <body> <h1 data-l10n-id="hello_id"></h1> </body> </html> then you can use this html file to build your interface, for example inside a panel: var button = require("sdk/ui/button/action").actionbutton({ id: "localized-hello", label: "localized hello", icon: "./icon-16.png", onclick: function() { hello.show(); } }); var hello = require("sdk/panel").panel({ height: 75, width: 150, contenturl: require("sdk/self").data.url("my-panel.html") }); given locale files for "en-us" and "fr" which provide translations of hello_id, the panel will now display "hello!" or "bonjour !", according to the curren...
...And 10 more matches
Localizing extension descriptions
all of the different descriptions now appear in the install.rdf file using em:localized properties.
...the following example demonstrates this (most normal manifest properties have been removed for brevity): <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>tabsidebar@blueprintit.co.uk</em:id> <em:localized> <description> <em:locale>de-de</em:locale> <em:name>tab sidebar</em:name> <em:description>zeigt in einer sidebar vorschaubilder der inhalte aller offenen tabs an.</em:description> </description> </em:localized> <em:localized> <description> <em:locale>es-es</em:locale> <em:name>tab sidebar</em:name> <em:description>muestra ...
...una vista previa de sus pestañas en su panel lateral.</em:description> </description> </em:localized> <em:localized> <description> <em:locale>nl-nl</em:locale> <em:name>tab sidebar</em:name> <em:description>laat voorbeeldweergaven van uw tabbladen in de zijbalk zien.</em:description> </description> </em:localized> <em:name>tab sidebar</em:name> <em:description>displays previews of your tabs in your sidebar.</em:description> </description> </rdf> all of the metadata mentioned below can be localized in this way.
...And 8 more matches
The Essentials of an Extension - Archive of obsolete content
a localized description and name can be added with the following code: <em:localized> <description> <em:locale>es-es</em:locale> <em:name>xul school hola mundo</em:name> <em:description>bienvenido a xul school!</em:description> </description> </em:localized> the es-es locale string indicates that this is the spanish (es) localization for spain (es).
... you can add as many <em:localized> sections as you need.
...this is a special element that allows us to obtain localized strings dynamically, by only providing a "key" that identifies the string.
...And 7 more matches
IAccessibleAction
method overview [propget] hresult description([in] long actionindex, [out] bstr description ); hresult doaction([in] long actionindex ); [propget] hresult keybinding([in] long actionindex, [in] long nmaxbindings, [out, size_is(,nmaxbindings), length_is(, nbindings)] bstr keybindings, [out] long nbindings ); [propget] hresult localizedname([in] long actionindex, [out] bstr localizedname ); hresult nactions([out,retval] long nactions ); [propget] hresult name([in] long actionindex, [out] bstr name ); methods description() returns a description of the specified action of the object.
...description the returned value is a localized string of the specified action.
...the returned strings are the localized human readable key sequences to be used to activate each action, e.g.
...And 6 more matches
IAccessible2
([in] long maxextendedstates, [out, size_is(,maxextendedstates), length_is(, nextendedstates)] bstr extendedstates, [out] long nextendedstates ); [propget] hresult groupposition([out] long grouplevel, [out] long similaritemsingroup, [out] long positioningroup ); [propget] hresult indexinparent([out] long indexinparent ); [propget] hresult locale([out] ia2locale locale ); [propget] hresult localizedextendedrole([out] bstr localizedextendedrole ); [propget] hresult localizedextendedstates([in] long maxlocalizedextendedstates, [out, size_is(,maxlocalizedextendedstates), length_is(, nlocalizedextendedstates)] bstr localizedextendedstates, [out] long nlocalizedextendedstates ); [propget] hresult nextendedstates([out] long nextendedstates ); [propget] hresult nrelations([out] long nrelation...
...localizedextendedrole() returns the localized extended role.
... [propget] hresult localizedextendedrole( [out] bstr localizedextendedrole ); parameters localizedextendedrole return value s_false if there is nothing to return, [out] value is null.
...And 4 more matches
Preferences - Archive of obsolete content
nsipreflocalizedstring almost the same as nsisupportsstring, but it is handled differently in getcomplexvalue() when there's no user value for the given preference; see below for details.
...erence.with.non.ascii.value", components.interfaces.nsisupportsstring).data; // example 2: setting unicode value var str = components.classes["@mozilla.org/supports-string;1"] .createinstance(components.interfaces.nsisupportsstring); str.data = "some non-ascii text"; prefs.setcomplexvalue("preference.with.non.ascii.value", components.interfaces.nsisupportsstring, str); nsipreflocalizedstring another complex type supported by mozilla is nsipreflocalizedstring.
...you should do the following: add this line to some .properties file (for all of your locales), say to chrome://myext/locale/defaults.properties: extensions.myext.welcomemessage=localized default value add the default value for extensions.myext.welcomemessage, pointing to that properties file, by adding the following line to your file with default preferences (see below).
...And 3 more matches
Application Translation with Mercurial
in this example, we assume firefox for desktop shall be localized and that the localization branch is aurora.
... microsoft's terminology search allows fast lookups of localized technical terms.
...cut and paste these strings in the localized file so their position corresponds to the on in the english file.
...And 3 more matches
Index
10 localization notes guide, internationalization, localization, mozilla localizers usually work on the localizable files without the context of the source files including the localized strings; it is important to add comments to the localizable files themselves, too.
... 22 localizing extension metadata on addons.mozilla.org add-ons, extensions, internationalization, localization amo supports localized metadata for each extension.
...with that document, users can see immediately two localized files in their user interface by following closely and carefully the steps to create a language pack or a binary file that is ready for installation.
...And 3 more matches
Index
MozillaTechXPCOMIndex
some examples are: 169 iaccessiblerelation interfaces, needscontent, xpcom, xpcom interface reference returns a localized version of the relation type.
... 253 defaultkeybinding provides localized string of global keyboard accelerator for default action, such as ctrl+o for open file (ctrl + o).
... 264 getactiondescription this method retrieves the description (localized name) of the accessible action at the given zero-based index.
...And 3 more matches
l10n - Archive of obsolete content
note that you can't currently use localize strings appearing in content scripts or html files, but you can share the localized strings you want by assigning it's values to a json serializable object.
... globals functions get(identifier, count, placeholder1...n) this function takes a string parameter which it uses as an identifier to look up and return a localized string in the locale currently set for firefox.
... localized strings are supplied by the add-on developer in .properties files stored in the add-ons "locale" directory.
...And 2 more matches
Localization and Plurals
this plural rule is used to determine how many plural forms are needed for each word that needs to be localized, with plurals in mind.
...the latter ability of specifying a plural rule is useful for extensions because the extension doesn't necessarily have to be localized to the browser's locale.
... of course, the strings to be localized will be placed in a separate file, such as yourextension.properties, instead of being hardcoded in the javascript code file.
...And 2 more matches
Translation phase
the l10n tools are meant to help you maintain your localized content from release to release and leverage already localized materials when localizing new content.
... these are the mozilla application projects that are localized using the l10n tools above: firefox the award-winning firefox® web browser has security, speed and new features that will change the way you use the web.
... these are the mozilla web projects that are localized using the l10n tools above: mozilla.org every user's first mozilla experience.
...And 2 more matches
SVN for Localizers
brief intro to svn svn (abbreviation for subversion) is a free and open source repository tool we use to manage the localized mozilla web pages.
...you use it to copy files from the server to your computer and to push changed or localized files back onto the server.
...in each of those locale directories are other directories with files to be localized in .lang format.
...And 2 more matches
Creating localizable web applications
an important step of developing a web application or creating web content is making sure that it can be localized.
... simplify localized versions if necessary oftentimes, it is better to slightly simplify the localized version of your web application than to serve a mix of localized and english content.
... for example, if not all the pages of your website are going to be localized, you may consider removing links to the english-only pages from the navigation (headers, footers, sidebars) in the localized versions.
...And 2 more matches
preferences/service - Archive of obsolete content
example: var name = "extensions.checkcompatibility.nightly"; require("sdk/preferences/service").reset(name); getlocalized(name, defaultvalue) gets the localized value for an application preference name.
... returns string : localized preference value, returns a default value if no preference is set.
...so that prefs.get returns the properties file url whereas prefs.getlocalized returns the value defined in the properties file.
... example: var prefs = require("sdk/preferences/service"); var name = "general.useragent.locale"; prefs.get(name); // is equal to "chrome://global/locale/intl.properties" prefs.getlocalized(name) // is equal to "en-us" setlocalized(name, value) sets the localized application preference name to value.
Install Manifests - Archive of obsolete content
localized allows you to localize the add-on's name, description, contributors and other metadata.
... the localized description must specify at least one em:locale which indicates which locales to use this information for.
... <em:localized> <description> <em:locale>de-de</em:locale> <em:name>tab sidebar</em:name> <em:description>zeigt in einer sidebar vorschaubilder der inhalte aller offenen tabs an.</em:description> </description> </em:localized> the following properties which are described elsewhere in this page can be included in the localized property: name description creator homepageurl developer translator contributor more documentation can be found at localizing extension descriptions.
... <em:optionstype>3</em:optionstype> <em:optionsurl>chrome://myaddon/content/options.html</em:optionsurl> this section here contains an example of localized html page as an option panel in a new tab: bootstrapped extensions :: localization (l10n) (example linked to is: github :: l10n-html-options).
Localizing an extension - Archive of obsolete content
localizing strings in javascript code if your javascript code contains literal strings that need to be localized, as does our stock watcher sample, we need to make those localizable as well.
...this involves rewriting the refreshinformation() function to load the strings, and its enclosed inforeceived() function to use the loaded, localized, strings instead of string literals.
...likewise, if we have any property files containing localizable strings for our javascript code, we need to create localized versions of those property files in the chrome/locale/es-es directory as well.
... only the strings should be localized; the keys should be the same for each localization.
Accesskey display rules - Archive of obsolete content
however, in some locales, e.g., japanese localized build, its most ui labels don't have alphabets but alphabets are used to accesskey.
... for coherence of the labels on such localized builds, the accesskey text is always appended even if the labels have their accesskey characters.
... e.g., when an accesskey of "ok" is 'o' and an accesskey of "キャンセル" (means "cancel") is 'c', the labels will be "ok(o)" and "キャンセル(c)" on japanese localized build.
...this label will be displayed as "キャンセル(c)(c)" on the localized build.
XUL Coding Style Guidelines - Archive of obsolete content
making xul localizable -- mandatory in the past, ui (display) related resource descriptions are stored in *.rc (for windows client) or *.ad (for unix client) so that they can be localized for a specific language or culture.
...they are placed above the actual entity string in the format: <!-- localization note (entity.name): content --> where the <var>entity.name</var> is the entity name (id) for the string (entity value) to be localized, and the content provides helpful hints to the localizers.
... files not to be localized?
...to prevent them from being localized, you may insert a line of comment following the xml declaration as follows.
Creating localizable web content
per-locale customizations check if there are alternative links for localized pages (e.g., links to mdn, addons.mozilla.org, or other external resources, are there translated equivalents we can use).
... use localized screenshots if possible screenshots are important informative graphics, often times explaining how to achieve something in a desktop or web application.
... as such, they should be perceived as an essential part of the content and should be localized.
... if the screenshot shows the application that the website directly relates to (firefox on mozilla.com/firefox, personas on getpersonas.com), try to use screenshots from the localized version.
Writing localizable code
if you change the semantics of a localized string, change the key.
...there are few exceptions to this rule, but in general, the localized file should comply with standards and should not require build tools to be transformed.
... if you want to add build processing to localized files, be sure to request feedback from l10n@.
... any changed or new use of existing localized strings; anything that triggers a qa cycle on our 40+ localizations is l10n-impact.
Introduction to XUL - Archive of obsolete content
that is, a separate file of localized strings.
...the localized text must be defined in a separate dtd or dtd fragment.
...mozilla will make that decision automatically if the localized xml file specifies its dtd using a chrome url, as outlined in xul localizability issues.
Date.prototype.toLocaleFormat() - Archive of obsolete content
names for months and days of the week are localized using the operating system's locale.
...you should take care that the format string is localized properly according to the user's system settings.
...note that the format string in this example is not properly localized, which will result in the problems described above.
Creating a Language Pack
please consult the documentation on localized builds on firefox-source-docs.
... creating a langpack we will now merge the localized files from x-testing locale with the en-us files from the original source.
... $ cd ../obj-firefox-build/browser/locales we will now merge the localized files from x-testing locale with the en-us files from the original source.
CustomizableUI.jsm
array getwidgetsinarea(aareaid); string getareatype(aareaid); domelement getcustomizetargetforarea(aareaid, awindow); void reset(); void undoreset(); void removeextratoolbar(); object getplacementofwidget(awidgetid); bool iswidgetremovable(awidgetnodeorwidgetid); bool canwidgetmovetoarea(awidgetid); void getlocalizedproperty(awidget, aprop, aformatargs, adef); void hidepanelfornode(anode); bool isspecialwidget(awidgetid); void addpanelcloselisteners(apanel); void removepanelcloselisteners(apanel); void onwidgetdrag(awidgetid, aarea); void notifystartcustomizing(awindow); void notifyendcustomizing(awindow); void dispatchtoolboxevent(aevent...
... getlocalizedproperty() get a localized property off a (widget) object.
... parameters awidget the object whose property we should use to fetch a localizable string aprop the property on the object to use for the fetching aformatargs (optional) any extra arguments to use for a formatted string adef (optional) the default to return if we don't find the string in the stringbundle return value the localized string, or adef if the string isn't in the bundle.
Localization content best practices
add localization notes localizers usually work on the localizable files without the context of the source files including the localized strings; it is important to add comments to the localizable files themselves, too.
... don't forget to add a localization note when: part of the string is not supposed to be localized (for example, the name of an html attribute in a warning).
...if a placeholder is present, this can be correctly localized as tá %s ag rádh: but not without.
Localization sign-off reviews
this ensures that every user who downloads your localized mozilla application receives all of your hard work in a functional product.
... mistakenly localized code we look for changes in localized code that should not have been localized or wasn't localized in the previous revision.
...to put it simply, when we receive your request, we expect that you have spent time testing your work and making sure all strings have been localized and that your changes are relatively functional.
Localization technical reviews
this ensures that every user who downloads your localized mozilla application receives all of your hard work in a functional product.
...to put it simply, when we receive your request, we expect that you have spent time testing your work and making sure all strings have been localized and that your language pack is relatively functional.
...visit the wiki page for sign-off reviews to learn what's involved when maintaining a localized mozilla product.
Localization Use Cases
you'll notice that devicestoragehelper.showformatedsize passes a localized name of the unit to availablesize: function showformatedsize(element, l10nid, size) { // … var _ = navigator.mozl10n.get; element.textcontent = _(l10nid, { size: sizeinfo.size, unit: _('byteunit-' + sizeinfo.unit) }); } problem definition even though there's no need to localize the units in english at all, we still need to do it, because in other languages we might need to u...
...se localized names.
... in the javascript code, the developer needs to pass sizeinfo.unit instead of a localized value: function showformatedsize(element, l10nid, size) { // … element.textcontent = document.l10n.get(l10nid, { size: sizeinfo.size, unit: sizeinfo.unit }); } and then use the $unit variable verbatim in the english message: <availablesize "{{ $size }} {{ $unit }} available"> in french, the localizer can then use the value of $unit to match it against a translated abbreviati...
nsIAccessible
layout oriented methods nsiaccessible.getchildatpoint() to get child accessible from point nsiaccessible.getaccessibletoleft(), nsiaccessible.getaccessibletoright(), nsiaccessible.getaccessibleabove() or nsiaccessible.getaccessiblebelow() to get left, right, top or below placed accessible methods getkeybindings provides array of localized string of global keyboard accelerator for the given action index supported by accessible.
... keyboardshortcut provides localized string of accesskey name, such as alt+d.
... defaultkeybinding provides localized string of global keyboard accelerator for default action, such as ctrl+o for open file.
Bootstrapped extensions - Archive of obsolete content
xul and html files - using entities from dtd files many times html pages are used, however they cannot be localized with dtd files.
...here is an example showing how to use a localized html page as an options page: github :: l10n-html-options.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
though they are nested in javascript, the strings should be localized too, for the sake of ui consistency.
...are the strings to be displayed to the final user) notice : a simple sign is enough now you go back to the .js file where the strings to be localized are nested.
Search Extension Tutorial (Draft) - Archive of obsolete content
function setpref(name, value, localized) { // if this is a localized preference, transform the value into an // appropriate data: url.
... if (localized) value = "data:text/plain," + encodeuricomponent(name + "=" + value.replace(/ /g, "\\u0020")); // save the original and new values.
Index - Archive of obsolete content
these applications are easily customized with alternative text, graphics, and layout so they can be readily branded or localized for various markets.
... 1911 stringbundle xul elements, xul reference an element which can be used to load localized resources from property files.
Repackaging Firefox - Archive of obsolete content
locale/*/partner.properties for preferences which need to be localized, there needs to be an entry in each of the properties files with the desired value for that locale.
...there are two kinds of preferences in firefox, both set in the partner.js file: localizable preferences, which have a value of a chrome:// uri pointing to the properties file where firefox can fetch the localized value from.
Index - Archive of obsolete content
ArchiveMozillaXULIndex
these applications are easily customized with alternative text, graphics, and layout so they can be readily branded or localized for various markets.
... 1180 stringbundle xul elements, xul reference an element which can be used to load localized resources from property files.
The Joy of XUL - Archive of obsolete content
these applications are easily customized with alternative text, graphics, and layout so they can be readily branded or localized for various markets.
...further, the application can be localized for different languages and regions independently of its logic or presentation.
XUL Structure - Archive of obsolete content
the localized text is stored in two types of files: dtd files and properties files.
...the file browser.properties contains a few such localized strings.
stringbundle - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element which can be used to load localized resources from property files.
... the "src" attribute accepts only absolute chrome:// urls (see bugs 133698, 26291) attributes src properties applocale , src, stringbundle, strings methods getformattedstring, getstring examples (example needed) attributes src type: uri the uri of the property file that contains the localized strings.
omni.ja (formerly omni.jar)
/chrome/ user interface files for the application /chrome/localized.manifest manifest of localized content; referenced by the main chrome manifest file.
... /chrome/nonlocalized.manifest manifest of non-localized content; referenced by the main chrome manifest file.
Gecko Keypress Event
problem 2 the access keys for the menu items are specified with the localized characters on some localized builds.
... these localized access keys work fine with the keyboard layout of the locale.
Initial setup
hg (mercurial) mercurial is the revision control environment that houses the main mozilla source code as well as localized code for each official mozilla localization.
... hg (mercurial) as noted above, we use mercurial for maintaining mozilla source code and localized code.
L20n HTML Bindings
when all dom nodes are localized, the document element will fire a documentlocalized event, which you can listen to: document.addeventlistener('documentlocalized', function() { // the dom has been localized and the user sees it in their language yourapp.init(); }); exposing context data you can expose important bits of data to the localization context in form of context data.
... <script type="application/l10n-data+json"> { "newnotifications": 3, "user": { "name": "jane", "gender": "feminine" } } </script> this data will be available context-wide to all localized strings.
IAccessibleImage
method overview [propget] hresult description([out] bstr description ); [propget] hresult imageposition([in] enum ia2coordinatetype coordinatetype, [out] long x, [out] long y ); [propget] hresult imagesize([out] long height, [out] long width ); methods description() returns the localized description of the image.
... [propget] hresult description( [out] bstr description ); parameters description the localized description of the image.
IAccessibleRelation
1.0 66 introduced gecko 1.9 inherits from: iunknown last changed in gecko 1.9 (firefox 3) method overview [propget] hresult localizedrelationtype([out] bstr localizedrelationtype ); [propget] hresult ntargets([out] long ntargets ); [propget] hresult relationtype([out] bstr relationtype ); [propget] hresult target([in] long targetindex, [out] iunknown target ); [propget] hresult targets([in] long maxtargets, [out, size_is(maxtargets), length_is( ntargets)] iunknown targets, [out] long ntargets ); methods localizedrelationtype() returns a localized version of the relation type.
... [propget] hresult localizedrelationtype( [out] bstr localizedrelationtype ); parameters localizedrelationtype return value s_ok.
GetKeyBindings
« nsiaccessible page summary this method provides array of localized string of global keyboard accelerator for the given action index supported by accessible.
...return values returns array of localized string of global keyboard accelerator.
nsIMsgAccountManagerExtension
a panel consists of a xul file with a page element as root element and the property file containing the localized name.
...it has to be unique and defines the file name of the property file and the xul page as well as the name of the localized string contained in the property file.
nsIMsgFilterCustomAction
this should be localized.
... * @param actionfolder folder in the filter list * @param filtertype filter type (manual, offlinemail, etc.) * * @return errormessage a localized message to display if invalid * set to null if the actionvalue is valid */ autf8string validateactionvalue(in autf8string actionvalue, in nsimsgfolder actionfolder, in nsmsgfiltertypetype filtertype); /* allow duplicate actions in the same filter list?
Component; nsIPrefBranch
interfaces currently supported are: nsilocalfile nsisupportsstring (unichar) (removed as of gecko 58 in favor of getstringpref) nsipreflocalizedstring (localized unichar) nsifilespec (deprecated - to be removed eventually) avalue the xpcom object into which to the complex preference value should be retrieved.
...interfaces currently supported are: nsilocalfile nsisupportsstring (unichar) (removed as of gecko 58 in favor of setstringpref) nsipreflocalizedstring (localized unichar) nsifilespec (deprecated - to be removed eventually) avalue the xpcom object from which to set the complex preference value.
translate - HTML: Hypertext Markup Language
the translate global attribute is an enumerated attribute that is used to specify whether an element's translateable attribute values and its text node children should be translated when the page is localized, or whether to leave them unchanged.
... it can have the following values: empty string or "yes", which indicates that the element should be translated when the page is localized.
SVG: Scalable Vector Graphics
WebSVG
compared to classic bitmapped image formats such as jpeg or png, svg-format vector images can be rendered at any size without loss of quality and can be easily localized by updating the text within them, without the need of a graphical editor to do so.
... with proper libraries, svg files can even be localized on-the-fly.
2015 MDN Fellowship Program - Archive of obsolete content
this page is a historical archive, originally hosted at /fellowship, and was localized.
Miscellaneous - Archive of obsolete content
these properties can be accessed from javascript in the following manner: var common = { _bundle: components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"), getlocalizedmessage: function(msg) { return this._bundle.getstringfromname(msg); } }; alert(common.getlocalizedmessage("invalid.url")) another similar alternative (using both getstringfromname and formatstringfromname), is: var fcbundle = components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .c...
Chapter 1: Introduction to Extensions - Archive of obsolete content
because firefox and its extensions are designed to support multiple languages, excellent extensions come from all over the world, and can be quickly localized by anyone interested.
Adding windows and dialogs - Archive of obsolete content
getservice(ci.nsipromptservice); prompts.alert(window, "alert title", "hello!"); you should of course use localized strings instead of hard-coded ones.
Setting Up a Development Environment - Archive of obsolete content
for instance, you may want to test your extension in firefox 3.5 and firefox 3.6, or test it in a localized version of firefox.
The Box Model - Archive of obsolete content
you always have to keep in mind that localized strings may be significantly longer in other languages, specially much longer than english strings.
Useful Mozilla Community Sites - Archive of obsolete content
there's a significant portion of users that use a localized version of firefox, so you shouldn't neglect them.
List of Mozilla-Based Applications - Archive of obsolete content
tool built on xulrunner mongodb database project uses spidermonkey moyura email client part of the khmeros linux distro mozcards, jolistopwatch, jolitimer simple apps for maemo uses xulrunner moznet .net control embeddable gecko for .net applications wraps xulrunner for use in .net applications my internet browser localized browser uses gecko myna application server javascript application server for java uses mozilla rhino nextcms (fr) cms nightingale music player community run effort to continue songbird support for linux olpc web browser browser oneteam jabber client opendocument viewer viewer opengate's tools...
Conclusion - Archive of obsolete content
mozilla has a fourth ui layer--localized text--that wasn't discussed in the tutorial because there is no text to localize.
New Skin Notes - Archive of obsolete content
thanks again --mmondor future fixes in l10n versions there all heading links are wrong - main link and documentation leads to english devmo, and devnews and webwatch should be hidden or localized too.
Reading textual data - Archive of obsolete content
you can fallback to the default character encoding stored in preferences (intl.charset.default, a localized pref value) when reading from a file, the question is harder to answer.
confirm - Archive of obsolete content
defaults to "confirm" (or the localized equivalent).
loadResources - Archive of obsolete content
this method is used to internationalize installation scripts by allowing the installer to retrieve localized string values from a separate file.
Methods - Archive of obsolete content
loadresources returns an object whose properties are localized strings loaded from the specified property file.
preference.type - Archive of obsolete content
int an integer string a string unichar a unicode string wstring a localized string.
stringbundle.src - Archive of obsolete content
« xul reference home src type: uri the uri of the property file that contains the localized strings.
Sorting and filtering a custom tree view - Archive of obsolete content
for the sake of simplicity, strings are not localized and the data loaded is hard coded.
Complete - Archive of obsolete content
how a text sting gets localized when you press button 1 you see an message in english or french, depending on your application's locale.
Localization - Archive of obsolete content
inside these archives, you will find the files that hold the localized text for each window.
Using nsIXULAppInfo - Archive of obsolete content
} see nsiversioncomparator for details example 2: dealing with nightlies var appinfo = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulappinfo); if(appinfo.appbuildid >= "2005093006") { // running on a build after 2005093006 } you shouldn't rely on build ids for releases, as build id might be different for custom build or a localized version of an application.
preference - Archive of obsolete content
int an integer string a string unichar a unicode string wstring a localized string.
2006-09-22 - Archive of obsolete content
summary: mozilla.dev.i18n - feb 2nd - sep 22nd, 2006 announcements testing a dummy greek bon echo nsis installer bug #69230: accelerators should not be affected by keyboard group/level proposal of code changes for l10n in firefox 3 discussions thai language support: how can we add thai as an official localized build?
2006-11-24 - Archive of obsolete content
approval queue for fx 2.0.0.1 closing closing the approval queue for firefox 2.0.0.1 discussions quality of localized builds and process requirements quality of localized builds and process requirements the translate toolkit mdnto po: its current state and how to use it discussion on clarifications on translate toolkit to avoid confusion.
E4X for templating - Archive of obsolete content
return s.replace(/"/g, '&quot;').replace(/'/g, '&apos;'); } if (typeof s === 'xml') { return s.tostring().replace(/"/g, '&quot;').replace(/'/g, '&apos;'); } return string(s).replace(/"/g, '&quot;').replace(/'/g, '&apos;'); } localization e4x works nicely with a simple utility for localizing strings of a properties file: // localization function $s(msg, args){ //get localized message var strs = cc['@mozilla.org/intl/stringbundle;1'].getservice(ci.nsistringbundleservice).
XForms Input Element - Archive of obsolete content
the names are localized (xhtml only).
Client-side form validation - Learn web development
validationmessage: returns a localized message describing the validation constraints that the control doesn't satisfy (if any).
Gecko info for Windows accessibility vendors
neither "description:" or "of" in the above strings is ever localized, so they should be parsed out.
Chrome registration
locale localizable applications keep all their localized information in locale providers.
Creating a spell check dictionary add-on
/www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>locale-code@dictionaries.addons.mozilla.org</em:id> <em:version>version number</em:version> <em:type>64</em:type> <em:unpack>true</em:unpack> <em:name>name</em:name> <!-- other install.rdf metadata such as em:localized, em:description, em:creator, em:developer, em:translator, em:contributor or em:homepageurl --> <!-- firefox --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>18.0a1</em:minversion> <em:maxversion>46.0</em:maxversion> </description> </em:targetapplication> <!-- t...
Listening to events on all tabs
amessage localized text corresponding to astatus.
AddonType
name string the localized name for the type.
Bootstrapping a new locale
set up for building the next step is to create a .mozconfig file with the compile options for the localized build of firefox, and to set up the object directory for the localized build.
L10n testing with xcode
select the client project in the left pane and choose editor > import localizations from the toolbar and select your localized xliff file.
Localization notes
localizers usually work on the localizable files without the context of the source files including the localized strings; it is important to add comments to the localizable files themselves, too.
Localizing extension metadata on addons.mozilla.org
amo supports localized metadata for each extension.
Localizing with Koala
la-1.9.2 3.6 requesting all changes adding changesets adding manifests adding file changes added 33099 changesets with 158636 changes to 50664 files (+9 heads) updating working directory 40357 files updated, 0 files merged, 0 files removed, 0 files unresolved configure the locale locale id: x-testing (put your locale's code) version: 3.6 location: choose the folder where you want to keep the localized files or leave empty for now check "mercurial" if you wish to use mercurial to keep the revision history of your files (very recommended) existing localizations: url: if you're editing an existing localization or you already have a repository set up (either on hg.mozilla.org or bitbucket), type the url of the remote repository, e.g.
Localizing with Pontoon
progress indicator displays your progress on the resource being localized.
Localizing without a specialized tool
with that document, users can see immediately two localized files in their user interface by following closely and carefully the steps to create a language pack or a binary file that is ready for installation.
Localization quick start guide
when we get to specific examples, we'll take them from the firefox project, as it is the most widely localized project within mozilla.
Uplifting a localization from Central to Aurora
that's gonna conflict, and you need to resolve that with your merge tool so that the resulting localized file doesn't have the string any more.
Localization formats
there are 4 main approaches to web l10n with regards to the choice of technology used for localization logic: html/php .lang gettext (.po) wiki (tbd) the choice of the filetype depends on a couple of factors: how much content is there to be localized?
Web Localizability
you will have quality content, localized and adapted to the needs of the local market.
L20n
for localizers documentation for localizers creating localized content for a project that uses l20n.
Self-hosted builtins in SpiderMonkey
throwtypeerror, throwrangeerror, throwsyntaxerror, which self-hosted code should use instead of throw so that the error message is specified in js.msg and can be localized.
SpiderMonkey Internals
these messages can be localized at compile time by replacing the .msg file; or, with a little modification to the source, at run time.
DefaultKeyBinding
« nsiaccessible page summary provides localized string of global keyboard accelerator for default action, such as ctrl+o for open file (ctrl + o).
GetActionDescription
« nsiaccessible page summary this method retrieves the description (localized name) of the accessible action at the given zero-based index.
KeyboardShortcut
« nsiaccessible page summary provides localized string of accesskey name, such as alt+d (alt + d).
nsIBrowserHistory
you can also pass in the localized "(local files)" title given to you by a history query to remove all history information for local files.
nsIContentSniffer
let charset = "iso-8859-1"; try { // this pref has been removed, see bug 910192 charset = services.prefs.getcomplexvalue("intl.charset.default", ci.nsipreflocalizedstring).data; } catch (e) { } let conv = cc["@mozilla.org/intl/scriptableunicodeconverter"] .createinstance(ci.nsiscriptableunicodeconverter); conv.charset = charset; try { let str = conv.convertfrombytearray(adata, alength); if (str.substring(0, 5) == "%pdf-") return "application/pdf"; // we ...
nsIDOMFontFace
attribute type description cssfamilyname domstring a family name that could be used in css font-family (not necessarily the actual name that was used, due to aliases, generics, localized names, and so on).
nsIMsgSearchCustomTerm
this should be localized.
nsIProgressEventSink
astatusarg status code argument to be used with the string bundle service to convert the status message into localized, human readable text.
nsIStringBundleService
intl/strres/nsistringbundle.idlscriptable provides the string bundle service, which provides a way to fetch localized strings from a property file.
nsIUpdate
billboardurl astring the url to a page that is typically localized to display in the update prompt.
nsIWebProgressListener
amessage localized text corresponding to astatus.
XPCOM Interface Reference
vhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensinetworklinkservicensiobservernsiobserverservicensioutputstreamnsioutputstreamcallbacknsiparentalcontrolsservicensiparserutilsnsipasswordnsipasswordmanagernsipermissionnsipermissionmanagernsipipensiplacesimportexportservicensiplacesviewnsipluginhostnsiprefbranch2nsipreflocalizedstringnsiprefservicensiprincipalnsiprinterenumeratornsiprintingpromptnsiprivatebrowsingservicensiprocessnsiprocess2nsiprocessscriptloadernsiprofilensiprofilelocknsiprofileunlockernsiprogramminglanguagensiprogresseventsinknsipromptnsipromptservicensipropertiesnsipropertynsipropertybagnsipropertybag2nsipropertyelementnsiprotocolhandlernsiprotocolproxycallbacknsiprotocolproxyfilternsiprotocolproxyser...
XPCOM Interface Reference by grouping
eventsink nsihttpchannel nsihttpchannelinternal nsihttpheadervisitor nsiidnservice nsiprotocolhandler nsiprotocolproxycallback nsiprotocolproxyfilter nsiprotocolproxyservice nsiproxyinfo preferences nsiiniparser nsiiniparserfactory nsiprefbranch nsiprefbranch2 nsipreflocalizedstring nsiprefservice nsistringbundle nsistringbundleservice security cookies nsicookie nsicookie2 nsicookieacceptdialog nsicookieconsent nsicookiemanager nsicookiemanager2 nsicookiepermission nsicookiepromptservice ns...
Thunderbird Binaries
latest english trunk builds are available at: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/ latest localized trunk builds are available at: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central-l10n/ note: please use http://ftp.stage.mozaws.net/pub/thunderbird/nightly/latest-comm-central/ because the above two links currently do not work.
WebIDL bindings
each new tag requires that a localized string be defined, containing the deprecation message to display.
Mozilla
creating a localized windows installer of seamonkey preamble: not all of the programs listed below are necessary.
Constraint validation API - Web APIs
if the element's value is not valid, it returns a localized validation message.
HTMLButtonElement - Web APIs
htmlbuttonelement.validationmessage read only is a domstring representing the localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLFieldSetElement - Web APIs
htmlfieldsetelement.validationmessage a domstring representing a localized message that describes the validation constraints that the element does not satisfy (if any).
HTMLInputElement - Web APIs
validationmessage read only string: returns a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLKeygenElement - Web APIs
validationmessage read only is a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLObjectElement.validationMessage - Web APIs
the validationmessage read-only property of the htmlobjectelement interface returns a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLObjectElement - Web APIs
htmlobjectelement.validationmessage read only returns a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLOutputElement - Web APIs
htmloutputelement.validationmessageread only a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLSelectElement - Web APIs
htmlselectelement.validationmessageread only a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
HTMLTextAreaElement - Web APIs
validationmessage read only string: returns a localized message that describes the validation constraints that the control does not satisfy (if any).
Index - Web APIs
WebAPIIndex
1852 htmlobjectelement.validationmessage api, html dom, htmlobjectelement, needsexample, property, reference, validationmessage the validationmessage read-only property of the htmlobjectelement interface returns a domstring representing a localized message that describes the validation constraints that the control does not satisfy (if any).
Writing WebSocket servers - Web APIs
extensions are optional and generalized (like compression); subprotocols are mandatory and localized (like ones for chat and for mmorpg games).
ARIA: timer role - Accessibility
this should be localized.
ARIA: application role - Accessibility
this should be localized.
Developer guides
this guide covers the algorithm in general and how it applies to content you create—especially when you build properly localized and internationalized content.
HTML attribute reference - HTML: Hypertext Markup Language
translate global attribute specify whether an element’s attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.
Global attributes - HTML: Hypertext Markup Language
translate an enumerated attribute that is used to specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.
HTML documentation index - HTML: Hypertext Markup Language
WebHTMLIndex
33 translate experimental, global attributes, html, reference the translate global attribute is an enumerated attribute that is used to specify whether an element's translateable attribute values and its text node children should be translated when the page is localized, or whether to leave them unchanged.
Array - JavaScript
array.prototype.tolocalestring() returns a localized string representing the array and its elements.
BigInt.prototype.toLocaleString() - JavaScript
english locale using locales this example shows some of the variations in localized number formats.
BigInt64Array - JavaScript
bigint64array.prototype.tolocalestring() returns a localized string representing the array and its elements.
BigUint64Array - JavaScript
biguint64array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Date.prototype.toLocaleDateString() - JavaScript
to check whether an implementation supports them already, you can use the requirement that illegal language tags are rejected with a rangeerror exception: function tolocaledatestringsupportslocales() { try { new date().tolocaledatestring('i'); } catch (e) { return e.name === 'rangeerror'; } return false; } using locales this example shows some of the variations in localized date formats.
Date.prototype.toLocaleString() - JavaScript
to check whether an implementation supports them already, you can use the requirement that illegal language tags are rejected with a rangeerror exception: function tolocalestringsupportslocales() { try { new date().tolocalestring('i'); } catch (e) { return e instanceof rangeerror; } return false; } using locales this example shows some of the variations in localized date and time formats.
Date.prototype.toLocaleTimeString() - JavaScript
to check whether an implementation supports them already, you can use the requirement that illegal language tags are rejected with a rangeerror exception: function tolocaletimestringsupportslocales() { try { new date().tolocaletimestring('i'); } catch (e) { return e​.name === 'rangeerror'; } return false; } using locales this example shows some of the variations in localized time formats.
Float32Array - JavaScript
float32array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Float64Array - JavaScript
float64array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Int16Array - JavaScript
int16array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Int32Array - JavaScript
int32array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Int8Array - JavaScript
int8array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
examples datetimeformat outputs localized, opaque strings that cannot be manipulated directly: var date = date.utc(2012, 11, 17, 3, 0, 42); var formatter = new intl.datetimeformat('en-us', { weekday: 'long', year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', fractionalseconddigits: 3, hour12: true, timezone: 'utc' }); formatter.format(date); // "monday, 12/17/2...
Intl.DateTimeFormat - JavaScript
var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // tolocalestring without arguments depends on the implementation, // the default locale, and the default time zone console.log(new intl.datetimeformat().format(date)); // → "12/19/2012" if run with en-us locale (language) and time zone america/los_angeles (utc-0800) using locales this example shows some of the variations in localized date and time formats.
Intl.NumberFormat() constructor - JavaScript
possible values are: "symbol" to use a localized currency symbol such as €, this is the default value, "narrowsymbol" to use a narrow format symbol ("$100" rather than "us$100"), "code" to use the iso currency code, "name" to use a localized currency name such as "dollar", currencysign in many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
Intl.NumberFormat.prototype.formatToParts() - JavaScript
examples comparing format and formattoparts numberformat outputs localized, opaque strings that cannot be manipulated directly: var number = 3500; var formatter = new intl.numberformat('de-de', { style: 'currency', currency: 'eur' }); formatter.format(number); // "3.500,00 €" however, in many user interfaces there is a desire to customize the formatting of this string.
Intl.NumberFormat - JavaScript
var number = 3500; console.log(new intl.numberformat().format(number)); // → '3,500' if in us english locale using locales this example shows some of the variations in localized number formats.
Intl.PluralRules - JavaScript
examples using locales this example shows some of the variations in localized plural rules.
Number.prototype.toLocaleString() - JavaScript
using locales this example shows some of the variations in localized number formats.
TypedArray - JavaScript
typedarray.prototype.tolocalestring() returns a localized string representing the array and its elements.
Uint16Array - JavaScript
uint16array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Uint32Array - JavaScript
uint32array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Uint8Array - JavaScript
uint8array.prototype.tolocalestring() returns a localized string representing the array and its elements.
Uint8ClampedArray - JavaScript
uint8clampedarray.prototype.tolocalestring() returns a localized string representing the array and its elements.
Web video codec guide - Web media technologies
block motion compensation handles localized changes, looking for smaller sections of the image that can be encoded using motion compensation.