The Dropbox folder hierarchy needs to be as follows:
- RCM CiE Toolkit Final
- en / es / etc. (ISO 639-1 two-letter language code)
-
- toolkit (folder name must match this exactly)
- (overview toolkit docs go here outside of any subfolders)
- (a zip of the entire toolkit should be saved here outside of any subfolders)
- folders for sections and documents can be named anything but should sort into the order you want them to display
-
- modalities (folder name must match this exactly)
-
- Cash for Work Box (the words should be translated but the number 1 must be included)
-
- Modalities Box (the words should be translated but the number 2 must be included)
-
- resources (folder name must match this exactly)
-
- Guidance (the words should be translated but the number 1 must be included)
-
- Learning (the words should be translated but the number 2 must be included)
-
- Training (the words should be translated but the number 3 must be included)
-
- Coordination (the words should be translated but the number 4 must be included)
-
- data management (folder name must match this exactly)
-
- Mobile Data Collection (the words should be translated but the number 1 must be included)
-
- Spreadsheet Tools (the words should be translated but the number 2 must be included)
-
- Cash IM Resourcs (the words should be translated but the number 3 must be included)
-
- en / es / etc. (ISO 639-1 two-letter language code)
The site is configured to support 2-letter core language codes. So english is 'en' not 'en-US' and/or 'en-GB'. Using a longer code will not function.
- tell app config the language exists
- add 2-letter language code to
authorized_locales
array in _config.yml - include locale file (to support date/time localization)
- several already in place (in _locales dir), otherwise get from here
- include _data/
2-letter code
.yml to support site content translations - copy _data/en.yml, then update text values
- note that the url for the nav items can be updates for your language. this needs to align with the permalink in the page frontmatter (see item 4.2 below)
- create folder of page templates
- copy 'en' dir, rename copy as your 2-letter language code
- in frontmatter for all templates there within, you need to add the language code and pagename to the
permalink
(i.e. /toolkit/ becomes /fr/boite-a-outils/ for the french translation)