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

Fixes #595, #601 Add translations for settings in sidebar #602

Merged
merged 14 commits into from Jan 20, 2017
Merged

Fixes #595, #601 Add translations for settings in sidebar #602

merged 14 commits into from Jan 20, 2017

Conversation

umairidris
Copy link
Contributor

@umairidris umairidris commented Jan 20, 2017

Fixes #595, #601

@mmahalwy
Copy link
Contributor

@umairidris you are a kind man! Can I trouble you a little bit more? See:

#601

@umairidris
Copy link
Contributor Author

Sure thing, keep this open I will just add them here.

p.s. I am getting these off Google translate. Might want to get someone to confirm them :)

@naveed-ahmad
Copy link
Contributor

Can you also remove "LANGUAGE" from footer ? and translate "ALL RIGHTS RESERVED " as well. For Urdu this would be: "جملہ حقوق محفوظ ہیں"

@mmahalwy
Copy link
Contributor

Yeah i been using Google translate too

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33181

@umairidris umairidris changed the title Fixes #595 Add translations for settings in sidebar Fixes #601 Add translations for settings in sidebar Jan 20, 2017
@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33182

@umairidris umairidris changed the title Fixes #601 Add translations for settings in sidebar Fixes #595, #601 Add translations for settings in sidebar Jan 20, 2017
'nav.mobile': 'Mobile Apps',
'nav.navigate': 'Navigate',
'nav.legacySite': 'Legacy Quran.com',

'settings.reciters': 'Reciters',
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use setting.reciters for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

'nav.mobile': 'Mobile Apps',
'nav.navigate': 'Navigate',
'nav.legacySite': 'Legacy Quran.com',

'settings.reciters': 'Reciters',
'settings.translations': 'Translations',
'settings.tooltip': 'Tooltip Content',
Copy link
Contributor

Choose a reason for hiding this comment

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

setting.tooltip.title

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

'nav.mobile': 'موبائل',
'nav.navigate': 'تشریف لے جائیں',
'nav.legacySite': 'پرانی سائٹ',

'settings.reciters': 'قراء',
'settings.translations': 'ترجمہ',
'settings.tooltip': 'اوزاری ٹوٹکا مواد',
Copy link
Contributor

Choose a reason for hiding this comment

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

lol اوزاری ٹوٹکا مواد is too much :) no one will understand what's this :p

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Blame Ggogle translate :P any alternative?

Copy link
Contributor

Choose a reason for hiding this comment

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

we already have translation for setting, see setting.* group. For tooltip key is setting.tooltip.title

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ops... I'll fix that

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33183

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33184

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33185

@@ -64,7 +64,8 @@ class GlobalSidebar extends Component {
{children}
<li>
<a tabIndex="-1" className="pointer" onClick={() => this.setState({ settingsModalOpen: true }, handleOpen(false))}>
<i className="ss-icon ss-settings vertical-align-middle" />{' '}Settings
<i className="ss-icon ss-settings vertical-align-middle" />{' '}
<LocaleFormattedMessage id="nav.settings" defaultMessage="Settings" />
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use setting.title for this, no need to duplicate keys with same values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait.. setting.title is set to Quran for some reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

setting.title is the sidebar title not the "settings" word

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually searched for options for urdu/arabic to be safe (so it duplicates setting.option at the moment) because settings in english has two meanings. But in English it should be called settings, not options. If you have alternative word for settings for urdu I can use that instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we had 'Setting' and 'options' two different words in sidebar before. But that's not the case now. We can remove options now.

Copy link
Contributor

Choose a reason for hiding this comment

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

value of setting.title should be "Settings", that's bug in en.js. Urdu and Arabic has correct value. Lets use setting.title and remove setting.options

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Drawer was using setting.title so I added a nav.title to replace it.

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33186

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33187

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33188

Copy link
Contributor

@naveed-ahmad naveed-ahmad left a comment

Choose a reason for hiding this comment

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

I'm not sure why sidebar header is "Quran". It should be "Setting" OR " put small Quran logo which point to home.

@ahmedre
Copy link
Contributor

ahmedre commented Jan 20, 2017

Deployed to: http://staging.quran.com:33190

@mmahalwy
Copy link
Contributor

@naveed-ahmad agreed!

@mmahalwy mmahalwy merged commit 73f8120 into quran:master Jan 20, 2017
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.

None yet

4 participants