Skip to content

Commit 735f06d

Browse files
authored
Merge pull request #11 from bdougsand/master
User language selection
2 parents 0ea2591 + 100b0f5 commit 735f06d

2 files changed

Lines changed: 44 additions & 20 deletions

File tree

HomeScreen.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ class HomeScreenWrapped extends React.Component {
1616

1717
// could be abstracted to a single function accepting lang prop
1818
// but this works for only two cases
19-
handlePressEnglish = () => {
20-
this.setState({ language: ENGLISH })
19+
handlePress= (lang) => {
20+
global.LANG = lang;
21+
this.props.navigation.navigate("Chooser");
2122
}
22-
handlePressHindi = () => {
23-
this.setState({ language: HINDI })
24-
}
25-
23+
2624
render () {
2725
const navigation = this.props.navigation;
2826
let homeScreenImage = require('./assets/BackgroundForAppLanding.png');
@@ -63,7 +61,7 @@ class HomeScreenWrapped extends React.Component {
6361
}}
6462
>
6563
<TouchableHighlight
66-
onPress={() => navigation.navigate('Chooser', { language: ENGLISH })}
64+
onPress={() => this.handlePress(ENGLISH)}
6765
onPressIn={() => { this.setState({ pressing: ENGLISH }); }}
6866
onPressOut={() => { this.setState({ pressing: null }); }}
6967
underlayColor="transparent"
@@ -82,7 +80,7 @@ class HomeScreenWrapped extends React.Component {
8280
/>
8381
</TouchableHighlight>
8482
<TouchableHighlight
85-
onPress={() => navigation.navigate('Chooser', { language: HINDI })}
83+
onPress={() => this.handlePress(HINDI)}
8684
onPressIn={() => { this.setState({ pressing: HINDI }); }}
8785
onPressOut={() => { this.setState({ pressing: null }); }}
8886
underlayColor="transparent"

page/About.js

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,46 @@ import {
88
View
99
} from 'react-native';
1010

11-
import {IndicatorViewPager, PagerDotIndicator} from 'rn-viewpager';
11+
import { ENGLISH, HINDI } from "../config";
1212

13+
import {IndicatorViewPager, PagerDotIndicator} from 'rn-viewpager';
1314

1415
import pageStyles, { A, H2, Bull, P, Strong, BullHeader,BullHeaderMain } from "./styles.js";
1516

1617

17-
const ProjectDescription = () => (
18-
<ScrollView>
19-
<P>
20-
<Strong>Aashiyaan</Strong> is an interactive mobile documentary that has been co-created by domestic workers, homemakers and a filmmaker from Delhi. Filmed entirely in India, the transmedia project was developed with support from artists, volunteers, hackers and friends in New Delhi, India; Ryerson and York Universities, Canada; <A href="http://codeforboston.org">Code for Boston, USA</A> and the <A href="http://opendoclab.mit.edu">Open Documentary Lab</A> at MIT, USA.
21-
</P>
22-
<P>
23-
When cities are labelled unsafe, women appear as statistics and victims. This documentary is a living archive of the lives and experiences of the 'invisible' women of Delhi. It invites viewers to listen to and participate in women’s conversations about how they navigate unsafe urban geographies
24-
</P>
25-
</ScrollView>
26-
);
18+
const ProjectDescription = {
19+
[HINDI]: () => (
20+
<ScrollView>
21+
<P>
22+
आशियाँ | <Strong>Aashiyaan</Strong> एक इंटरैक्टिव मोबाइल डॉक्यूमेंट्री फ़िल्म है जिसे घरेलू श्रमिकों, गृहणियों और दिल्ली की एक फिल्म निर्माता द्वारा सह-निर्मित किया गया है।इंटरैक्टिव डाक्यूमेंट्री वह होती है जिस में आप स्वयं, अपनी पसंद की कहानी का चयन कर सकते हैं और अपनी कहानी भी उस में शामिल कर सकते हैं | भारत में फिल्मायी गयी यह डॉक्यूमेंटरी विभिन्न मीडिया (मोबाइल फ़ोन, इंटरनेट इत्यादि) के ज़रिये नई दिल्ली (भारत) में फ़िल्मकारों, स्वयंसेवकों, हैकर्स (कम्प्यूटर की दुनिया के जुगाड़ू) और मित्रों के सहयोग तथा रायरसन और यॉर्क विश्वविद्यालय (कैनडा); कोड फॉर बोस्टन (अमेरिका) और एम.आई.टी. की ओपन डॉक्यूमेंट्री लैब (अमेरिका) के सहयोग से बनी है।
23+
24+
</P>
25+
<P>
26+
यह डॉक्यूमेंटरी दिल्ली की 'अदृश्य' महिलाओं के जीवन और अनुभवों का एक जीवित संग्रह है। यह कई आकार लेता है। एक इंटरैक्टिव मोबाइल ऐप के ज़रिए आप इन महिलाओं की असुरक्षित शहरी क्षेत्रों में रहने, चलने और अपनी राह बनाने की बातचीत में शामिल हो सकते हैं | आप एक ऑडियो-विज़ुअल गैलरी (चित्र और संवाद) के ज़रिये इन महिलाओं की उम्मीदों, यादों और आकांक्षाओं का अनुभव कर सकते हैं |
27+
28+
</P>
29+
<P>
30+
यदि आप इन महिलाओं के बारे में और जानना चाहते हैं और उनकी आंखों से शहर का अनुभव करना चाहते हैं आप अपनी यात्रा का चयन कर सकते हैं या YouTube पर हमारे इंटरैक्टिव संग्रह पर जा सकते हैं। आप यह भी देख सकते हैं कि ये सह-निर्माता अपनी रोज़ मर्रा की ज़िन्दगी के दौरान फ़िल्मकार कैसे बनीं?
31+
32+
</P>
33+
<P>
34+
जब शहरों को असुरक्षित महसूस किया जाता है, तब महिलायें आंकड़ों और पीड़ितों के रूप में दिखाई देती हैं। आशियाँ | Aashiyaan इस कथन को विभिन्न वर्गों की महिलाओं के अनुभव के माध्यम से चुनौती देता है। इन महिलाओं द्वारा किए गए घरेलू श्रम, फ़िल्मी श्रम, उनके रचनात्मक श्रम को आकार देते हैं क्योंकि वे वार्तालाप स्थापित करते हैं, उनकी जीवनियाँ दर्शाते हैं और कभी कभी नाचते मोर दिखाते है। आशियाँ | Aashiyaan का मतलब घोंसला, घर ... अपनी स्वयं की व्यक्तिगत दुनिया है।
35+
</P>
36+
</ScrollView>
37+
),
38+
39+
[ENGLISH]: () => (
40+
<ScrollView>
41+
<P>
42+
<Strong>Aashiyaan</Strong> is an interactive mobile documentary that has been co-created by domestic workers, homemakers and a filmmaker from Delhi. Filmed entirely in India, the transmedia project was developed with support from artists, volunteers, hackers and friends in New Delhi, India; Ryerson and York Universities, Canada; <A href="http://codeforboston.org">Code for Boston, USA</A> and the <A href="http://opendoclab.mit.edu">Open Documentary Lab</A> at MIT, USA.
43+
</P>
44+
<P>
45+
When cities are labelled unsafe, women appear as statistics and victims. This documentary is a living archive of the lives and experiences of the 'invisible' women of Delhi. It invites viewers to listen to and participate in women’s conversations about how they navigate unsafe urban geographies
46+
</P>
47+
</ScrollView>
48+
)
49+
}
50+
2751

2852
const ProjectCredits = () => (
2953
<ScrollView>
@@ -149,11 +173,13 @@ const ProjectCredits = () => (
149173

150174
export default class AboutPage extends Component {
151175
render() {
176+
let Description = ProjectDescription[global.LANG || HINDI];
177+
152178
return (
153179
<IndicatorViewPager style={styles.container}
154180
indicator={<PagerDotIndicator pageCount={2}/>}>
155181
<View>
156-
<ProjectDescription/>
182+
<Description />
157183
</View>
158184
<View>
159185
<ProjectCredits/>

0 commit comments

Comments
 (0)