How can i use numbers in my yml files to show translations?
f.e.:
# de.yml
profile:
hair_colour:
0: "Blond"
1: "Dunkelblond"
2: "Braun"
3: "Brünett"
4: "Rot"
5: "Schwarz"
6: "Grau/meliert"
7: "Glatze"
8: "Andere"
Its not working... Why? How can i fix this?
...
Hi,
I have a load of data I want to store here: /apps/frontend/modules/builder/config/module.yml
I have it looking something like:
all:
series_options:
compact:
name: Compact
description: Something small.
enabled: 1
large:
name: Large
description: Bit bigger.
enabled: 0
In the actions.c...
Lets say my file lives in the config folder and it's called config/foo.yml. I want to write in that file something like this:
development:
status: developing
foo: dev-bar
production:
status: on-air
foo: prod-bar
And then, I want my plugin to read this file and take the correct configuration values according to the environment...
I'm guessing that rails stores all the parsed translations yml files in a sort of array/hash.
Is there a way to access this?
For example, if I've a file:
en:
test_string: "testing this"
warning: "This is just an example
Could I do something like, I18n.translations_store[:en][:test_string] ?
I could parse the yml file with YAML::l...
I have successfully created my first django project.
I have two apps in my project foo and foobar.
I have created a folder named 'fixtures' in each of the app folders. I have NOT specified a fixtures directory in my settings.yml, so (according to the docs), django should be looking in my {app}/fixtures folder.
In the {app}/fixtures fo...