Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1118946 - Use new App.name API for gaia grid l10n #28510

Merged

Conversation

zbraniecki
Copy link
Contributor

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

return this.app.getLocalizedValue('short_name', userLang, ep).then(
n => n,
this.app.getLocalizedValue.bind(this.app, 'name', userLang, ep)).then(
function(name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not mix styles, just use an arrow function here, .then(name => {

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@try-server-hook
Copy link

KevinGrandon Kevin Grandon (KevinGrandon) started tests. Results

var ep = this.entryPoint || undefined;

return this.app.getLocalizedValue('short_name', userLang, ep).then(
n => n,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also apply the pseudolocale logic here in case we get back the English value of short_name?

@try-server-hook
Copy link

zbraniecki Zibi Braniecki (zbraniecki) started tests. Results

@@ -529,7 +529,15 @@

var nameEl = document.createElement('span');
nameEl.className = 'title';
nameEl.textContent = this.name;

if (this.asyncName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this call this.updateTitle after assigning the element to this.element?

zbraniecki added a commit that referenced this pull request Mar 11, 2015
Bug 1118946 - Use new App.name API for gaia grid l10n. r=kgrandon
@zbraniecki zbraniecki merged commit e125989 into mozilla-b2g:master Mar 11, 2015
@zbraniecki zbraniecki deleted the 1118946-app-names-from-api branch May 8, 2015 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants