-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtranslations_and_pluralization.yaml
69 lines (69 loc) · 3.85 KB
/
translations_and_pluralization.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
questions:
-
uuid: 1eebf878-8b9a-650e-9293-99d84c92580c
question: 'It is possible to find missing or unused translation messages from templates?'
answers:
- { value: 'No, it is not possible.', correct: false }
- { value: 'Yes, with the debug:translator command', correct: false }
- { value: 'Yes, with the debug:translation command', correct: true }
- { value: 'Yes, with the debug:i18n command', correct: false }
- { value: 'Yes, with the debug:translate command', correct: false }
help: 'https://symfony.com/doc/current/translation.html#translation-debug'
-
uuid: 1eedb927-6a41-6a8a-a187-cbd99fd31204
question: 'What is the default directory where the translation files are located ?'
answers:
- { value: translations, correct: true }
- { value: src/translations, correct: false }
- { value: src/messages, correct: false }
- { value: config/translations, correct: false }
help: 'https://symfony.com/doc/current/translation.html#configuration'
-
uuid: 1eedb933-c34f-6a4e-91a8-09b433b1ae25
question: 'What is the recommended option of loader to use in translation ?'
answers:
- { value: '.yaml: YAML', correct: true }
- { value: '.xlf: XLIFF file', correct: true }
- { value: '.php: PHP file', correct: false }
- { value: '.csv: CSV file', correct: false }
- { value: '.json: JSON file', correct: false }
- { value: '.ini: INI file', correct: false }
- { value: '.dat, .res: ICU resource bundle', correct: false }
- { value: '.mo: Machine object format;', correct: false }
- { value: '.po: Portable object format', correct: false }
- { value: '.qt: QT Translations TS XML file', correct: false }
help: 'https://symfony.com/doc/current/translation.html#translation-resource-file-names-and-locations'
-
uuid: 1eedb9b3-b85c-644a-9b4b-11bcc7d3fb25
question: "In order to use pluralization, the file must contains +intl-icu in it's filename. EX: messages.en.yaml to messages+intl-icu.en.yaml"
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
- { value: 'Depends on the loader', correct: false }
help: 'https://symfony.com/doc/current/reference/formats/message_format.html#pluralization'
-
uuid: 1eedb9c5-d301-613a-927c-c7e29d4ef77c
question: 'Which format is used in translation to add arguments, in the ICU MessageFormat syntax ?'
answers:
- { value: 'Hello [name]', correct: false }
- { value: 'Hello {name}', correct: true }
- { value: 'Hello %name%', correct: false }
- { value: 'Hello $name', correct: false }
help: 'https://symfony.com/doc/current/reference/formats/message_format.html#message-placeholders'
-
uuid: 1eedba3b-7225-6566-816b-edd52650fa57
question: 'Is this form of pluralization is valid : "]-Inf,0]Oops! I''m down ]0,1000] I still have money ]1000,Inf] I have lots of money" ?'
answers:
- { value: 'Yes', correct: false }
- { value: 'No', correct: true }
help: 'https://symfony.com/doc/current/reference/formats/message_format.html#message-placeholders'
-
uuid: 1ef91f0a-3e86-6d7e-9fa4-dfd500bef952
question: "Which method must be implemented by a TranslationLoader that implements the Symfony\\Component\\Translation\\Loader\\LoaderInterface?"
answers:
- { value: "public function load($resource, $locale = 'en', $domain = 'messages');", correct: false }
- { value: "public function load($locale, $domain);", correct: false }
- { value: "public function load($resource, $locale, $domain = 'messages');", correct: true }
- { value: "public function load($locale = 'en', $domain = 'messages');", correct: false }
- { value: "public function load($resource, $locale, $domain);", correct: false }
help: 'https://github.com/symfony/translation/blob/7.0/Loader/LoaderInterface.php'