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

Commit

Permalink
Issue 156: Show shadda tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ragaeeb committed Apr 30, 2014
1 parent 52effe0 commit f396e97
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 25 deletions.
6 changes: 5 additions & 1 deletion assets/QuranPane.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ NavigationPane
if (top == pickerPage)
{
if ( persist.tutorial( "tutorialAlphanumeric", qsTr("Did you know you can quickly jump to a specific verse by typing its chapter number followed by a ':' and followed by the verse number.\n\nFor example, to jump to Surah Al-Baqara Verse #2, type '2:2' into the search field!"), "asset:///images/ic_quran.png" ) ) {}
else if ( !persist.contains("alFurqanAdvertised") ) {
else if ( !persist.contains("shaddaTutorial") ) {
definition.source = "ShaddaTutorial.qml";
var shadda = definition.createObject();
shadda.open();
} else if ( !persist.contains("alFurqanAdvertised") ) {
definition.source = "AlFurqanAdvertisement.qml";
var advertisement = definition.createObject();
advertisement.open();
Expand Down
93 changes: 93 additions & 0 deletions assets/ShaddaTutorial.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import bb.cascades 1.0

Sheet
{
id: root

Page
{
titleBar: TitleBar
{
title: qsTr("Shadda Tutorial") + Retranslate.onLanguageChanged

dismissAction: ActionItem
{
enabled: checkBox.checked
title: qsTr("Back") + Retranslate.onLanguageChanged
imageSource: "images/title/ic_prev.png"

onTriggered: {
console.log("UserEvent: ShaddaBack");
persist.saveValueFor("shaddaTutorial", 1);
root.close();
}
}
}

ScrollView
{
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill

Container
{
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
topPadding: 10; bottomPadding: 10; rightPadding: 10; leftPadding: 10

ImageView
{
imageSource: "images/toast/tutorial_shadda.png"
horizontalAlignment: HorizontalAlignment.Center

animations: [
RotateTransition {
id: tt
fromAngleZ: 360
toAngleZ: 0
duration: 1200
easingCurve: StockCurve.ElasticInOut
}
]
}

Label
{
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
textStyle.textAlign: TextAlign.Center
content.flags: TextContentFlag.ActiveText | TextContentFlag.EmoticonsOff
multiline: true
text: qsTr("\n\nالسلام عليكم\n\nSome users have left reviews that there are mistakes in the text. Please note that the above two in Arabic are identical!\n\nIf the vowel is on top of the shadda (w) it takes the ruling of a fatha. If the vowel is underneath the shadda, it would sound exactly like if the vowel was underneath the letter itself. Both ways are a valid, and thus this is just a matter of choice.\n\nIf you are not used to reading this way, please familiarize yourself with this rule in Arabic, or use the Mushaf feature to read the Qu'ran instead which uses the other style. JazakAllahu khair.\n\nIf you would like to read up on the Shadda rules please see here:\nhttps://en.wikipedia.org/wiki/Shadda") + Retranslate.onLanguageChanged
opacity: 0
bottomMargin: 40

animations: [
FadeTransition {
id: fader
fromOpacity: 0
toOpacity: 1
easingCurve: StockCurve.CubicOut
duration: 1000
}
]
}

CheckBox {
id: checkBox
topMargin: 40
text: qsTr("I Understand") + Retranslate.onLanguageChanged
}
}
}
}

onOpened: {
fader.play();
tt.play();
}

onClosed: {
destroy();
}
}
Binary file added assets/images/toast/tutorial_shadda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 34 additions & 24 deletions translations/Quran10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,32 +218,12 @@ Finally, there is built-in support to do efficient and fast lookups for any sura
<context>
<name>QuranPane</name>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Tutorial</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Would you like to see a video tutorial on how to use the app?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="36"/>
<location filename="../assets/QuranPane.qml" line="33"/>
<source>Mushaf</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="50"/>
<location filename="../assets/QuranPane.qml" line="47"/>
<source>M</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -303,7 +283,7 @@ You can also select an ayat above the current one to start there and end at the
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../assets/RangeSelector.qml" line="28"/>
<location filename="../assets/RangeSelector.qml" line="36"/>
<source>%n %1 selected</source>
<translation type="unfinished">
<numerusform></numerusform>
Expand Down Expand Up @@ -523,7 +503,7 @@ You can also select an ayat above the current one to start there and end at the
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/SearchPage.qml" line="82"/>
<location filename="../assets/SearchPage.qml" line="87"/>
<source>There were no matches for your search. Please try another query.</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -773,6 +753,36 @@ https://www.youtube.com/watch?v=BDY8i9VQeZM</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShaddaTutorial</name>
<message>
<location filename="../assets/ShaddaTutorial.qml" line="11"/>
<source>Shadda Tutorial</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ShaddaTutorial.qml" line="16"/>
<source>Back</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ShaddaTutorial.qml" line="60"/>
<source>Some users have left reviews that there are mistakes in the text. Please note that the above two in Arabic are identical!

If the vowel is on top of the shadda (w) it takes the ruling of a fatha. If the vowel is underneath the shadda, it would sound exactly like if the vowel was underneath the letter itself. Both ways are a valid, and thus this is just a matter of choice.

If you are not used to reading this way, please familiarize yourself with this rule in Arabic, or use the Mushaf feature to read the Qu&apos;ran instead which uses the other style. JazakAllahu khair.

If you would like to read up on the Shadda rules please see here:
https://en.wikipedia.org/wiki/Shadda</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ShaddaTutorial.qml" line="76"/>
<source>I Understand</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SupplicationsPane</name>
<message>
Expand Down

0 comments on commit f396e97

Please sign in to comment.