Closed Bug 838176 Opened 13 years ago Closed 10 years ago

Decide on link/script types for l20n

Categories

(L20n :: HTML Bindings, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Unassigned)

References

()

Details

(Keywords: APIchange)

We need type and rel for the following four <head> elements: - manifest link - context data script - resource link - resource script
manifest link: - type: application/json - rel: l10n-manifest context data script: - type: ? resource link: - type: application/l20n - rel: l10n-resource resource script: - type: application/l20n
1) <link rel="l10n-manifest" type="application/json" src="./locales/manifest.json" /> 2) <script type=""> { "unreadEmails": 5, "user": { "name": "John", "gender": "male" } } </script> 3) <link rel="l10n-resource" type="application/l20n" src="l10n:settings" /> 4) <script type="application/l20n"> <myButton "Button"> <warning "Warning!"> </script>
1) <link rel="l10n-manifest" type="application/json" href="./locales/manifest.json" /> DONE 2) <x-resource rel="l10n-data" type="application/json"> { "unreadEmails": 5, "user": { "name": "John", "gender": "male" } } </x-resource> 3) <x-resource rel="l10n" type="application/l20n" src="l10n:./locales/{{locale}}/settings.l20n"> 4) <x-resource rel="l10n" type="application/l20n"> <myButton "Button"> <warning "Warning!"> </x-resource>
Depends on: 846179
Assignee: nobody → stas
Keywords: APIchange
Priority: -- → P1
Target Milestone: --- → 1.0 beta
Priority: P1 → --
Target Milestone: 1.0 beta → Next
I'll keep this bug open but keep in mind that 1) it's not targeting 1.0, 2) the 1.0 work is happening in bug 846179.
Flags: blocking-parkcity+
Assignee: stas → nobody
We settled on not using manifests, and use: <meta name="defaultLanguage" content="en-US"> <meta name="availableLanguages" content="en-US, fr"> <link rel="localization" href="locales/example.{locale}.l20n">
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.