-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Externalize strings from Extension Manager view item template #3483
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,27 +3,30 @@ | |
<span class="ext-name">{{#metadata.title}}{{metadata.title}}{{/metadata.title}}{{^metadata.title}}{{metadata.name}}{{/metadata.title}}</span> | ||
<span class="muted ext-version">{{metadata.version}}</span><br/> | ||
<span class="muted ext-author"> | ||
by | ||
{{Strings.EXTENSION_AUTHOR}}: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would we want to keep our options open by including "by" in the translation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it's really necessary...it's probably going to be pretty obvious from context that these are the author/date even if we don't use any labels at all. |
||
{{#metadata.author.name}} | ||
{{metadata.author.name}} / | ||
{{/metadata.author.name}} | ||
<a href="{{ownerLink}}">{{formatUserId}}</a> | ||
</span> | ||
<span class="muted ext-date">on {{lastVersionDate}}</span> | ||
</span><br/> | ||
<span class="muted ext-date">{{Strings.EXTENSION_DATE}}: {{lastVersionDate}}</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How are dates getting formatted? Other than the update notifications which use a hard-coded date format (distinct per locale), we haven't done any locale specific dynamic formatting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm just using the UTC date format for now, which is pretty unambiguous (YYYY-MM-DD). We can make this more sophisticated later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. I'll file a bug. |
||
</td> | ||
<td class="ext-desc"> | ||
{{^isCompatible}} | ||
<div class="alert-message warning">This extension is incompatible with this version of Brackets.</div> | ||
<div class="alert-message warning"> | ||
{{#requiresNewer}}{{Strings.EXTENSION_INCOMPATIBLE_NEWER}}{{/requiresNewer}} | ||
{{^requiresNewer}}{{Strings.EXTENSION_INCOMPATIBLE_OLDER}}{{/requiresNewer}} | ||
</div> | ||
{{/isCompatible}} | ||
{{#metadata.description}} | ||
{{metadata.description}} | ||
{{/metadata.description}} | ||
{{^metadata.description}} | ||
<span class="muted"><em>No description</em></span> | ||
<span class="muted"><em>{{Strings.EXTENSION_NO_DESCRIPTION}}</em></span> | ||
{{/metadata.description}} | ||
{{#metadata.keywords.length}} | ||
<br/> | ||
<span class="ext-keywords">Keywords: | ||
<span class="ext-keywords">{{Strings.EXTENSION_KEYWORDS}}: | ||
{{#metadata.keywords}} | ||
{{.}} | ||
{{/metadata.keywords}} | ||
|
@@ -32,8 +35,8 @@ | |
</td> | ||
<td> | ||
<button class="btn install" data-extension-id="{{metadata.name}}" {{^allowInstall}}disabled{{/allowInstall}}> | ||
{{^isInstalled}}Install{{/isInstalled}} | ||
{{#isInstalled}}Installed{{/isInstalled}} | ||
{{^isInstalled}}{{Strings.INSTALL}}{{/isInstalled}} | ||
{{#isInstalled}}{{Strings.EXTENSION_INSTALLED}}{{/isInstalled}} | ||
</button> | ||
</td> | ||
</tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine