)]}'
{"doc/source/images/message_extraction.png":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d3789696dab5a1271b3b653b048d4aa152d5c6e6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"1ac06dbe_ac5d35ee","updated":"2016-08-25 13:12:04.000000000","message":"How did you draw these drawings? Hopefully editable source files are stored in the repo too.\n\nIn openstack-manuals project, it is recommended that the original SVG files are registered to the repository too.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"fa7ab95a_7491d4f0","in_reply_to":"1ac06dbe_ac5d35ee","updated":"2016-08-29 18:22:18.000000000","message":"I drew this using an online application, so the original file is stored in the cloud on my google account. Dont think it is possible for me to store it in the repo. The diagrams arent that complicated, someone else can come along and create something similar if there is a need for it in the future.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"}],"doc/source/index.rst":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d3789696dab5a1271b3b653b048d4aa152d5c6e6","unresolved":false,"context_lines":[{"line_number":43,"context_line":"   topics/settings"},{"line_number":44,"context_line":"   topics/customizing"},{"line_number":45,"context_line":"   topics/packaging"},{"line_number":46,"context_line":"   topics/translation"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Developer Docs"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_77aae61a","line":46,"range":{"start_line":46,"start_character":2,"end_line":46,"end_character":21},"updated":"2016-08-25 13:12:04.000000000","message":"This guide is targeted to developers. I think it is better to move \"Topic Guide\" (around L.83) below.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"   topics/settings"},{"line_number":44,"context_line":"   topics/customizing"},{"line_number":45,"context_line":"   topics/packaging"},{"line_number":46,"context_line":"   topics/translation"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Developer Docs"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_576cd234","line":46,"range":{"start_line":46,"start_character":2,"end_line":46,"end_character":21},"in_reply_to":"1ac06dbe_77aae61a","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"}],"doc/source/topics/translation.rst":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":5,"context_line":"What is the point of translating my code?"},{"line_number":6,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"You introduced an awesome piece of code and revel in your glorious acomplisment."},{"line_number":9,"context_line":"Suddenly your world comes crashing down when a core hands you a -1 because your"},{"line_number":10,"context_line":"code is not translated. What gives?"},{"line_number":11,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_795e9777","line":8,"updated":"2016-06-27 22:56:15.000000000","message":"accomplishment*","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Suddenly your world comes crashing down when a core hands you a -1 because your"},{"line_number":10,"context_line":"code is not translated. What gives?"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"If you are writing software meant for a global audience, such is the case with"},{"line_number":13,"context_line":"enterprise level software, you will want to ensure that it is translated so that"},{"line_number":14,"context_line":"other people around the world are able to use it. Adding translation to your"},{"line_number":15,"context_line":"code is not that hard and the benefits of it out weights the work you have to"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_b9d75fbe","line":12,"updated":"2016-06-27 22:56:15.000000000","message":"In writing open-source* software, you will want to ensure that it is translated so that other people around the world are able to use it.","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":12,"context_line":"If you are writing software meant for a global audience, such is the case with"},{"line_number":13,"context_line":"enterprise level software, you will want to ensure that it is translated so that"},{"line_number":14,"context_line":"other people around the world are able to use it. Adding translation to your"},{"line_number":15,"context_line":"code is not that hard and the benefits of it out weights the work you have to"},{"line_number":16,"context_line":"put in."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Overview and Architecture"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_b950ff5f","line":15,"updated":"2016-06-27 22:56:15.000000000","message":"outweighs*","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":21,"context_line":"You can skip this section if you are only interested in learning how to use"},{"line_number":22,"context_line":"translation. This section explains how the underlying message extraction and"},{"line_number":23,"context_line":"substitution work. There are two main components to translation: message"},{"line_number":24,"context_line":"extraction and message substitution. We will briefly go over what each one does"},{"line_number":25,"context_line":"for translation as a whole."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Message Extraction"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_f902870a","line":24,"updated":"2016-06-27 22:56:15.000000000","message":"This section explains how the underlying message extraction and\nsubstitution work. \n\nThere are two main components to translation: message\nextraction and message substitution.\n\nTwo sentences are essentially the same. Combine?\n\nThis section explains the two main components to translation: message\nextraction and message substitution.","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  these markers look like."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Once marked, we can then run a script that searches the codebase for these"},{"line_number":46,"context_line":"  markers and extract them into a POT file. In Horizon, we extract from both the"},{"line_number":47,"context_line":"  horizon folder and the openstack_dashboard folder. We use the Angular"},{"line_number":48,"context_line":"  extractor for Javascript and html files and the Django extractor for Python"},{"line_number":49,"context_line":"  and Django templates; both extractors are Babel plugins."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_244b465b","line":46,"updated":"2016-06-27 22:56:15.000000000","message":"include what POT means (Portable Object Template)","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  like gettext or one its variant. This allows the function to serve a dual"},{"line_number":72,"context_line":"  purpose - acting as a marker and also as a replacer."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* In order for translation to work properly, we need to know the user’s locale."},{"line_number":75,"context_line":"  Once we know the locale, we know which PO file to use. The gettext functions"},{"line_number":76,"context_line":"  that we wrapped our code around are then able to replace the untranslated"},{"line_number":77,"context_line":"  strings with the translated one by using the untranslated string as the"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_c46ec295","line":74,"updated":"2016-06-27 22:56:15.000000000","message":"mention Settings panel","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  purpose - acting as a marker and also as a replacer."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* In order for translation to work properly, we need to know the user’s locale."},{"line_number":75,"context_line":"  Once we know the locale, we know which PO file to use. The gettext functions"},{"line_number":76,"context_line":"  that we wrapped our code around are then able to replace the untranslated"},{"line_number":77,"context_line":"  strings with the translated one by using the untranslated string as the"},{"line_number":78,"context_line":"  message id."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_e4f81ec7","line":75,"updated":"2016-06-27 22:56:15.000000000","message":"PO (Portable Object) *\n\nA PO file is the file received back from translators. \n\nMake connection to message extraction section.","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":87,"context_line":"Making strings translatable"},{"line_number":88,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"To take your strings translatable, you simple need to mark it so that horizon"},{"line_number":91,"context_line":"can locate and extract it into a POT file. From there, something magical happens and a PO file is generated containing all of the translatable strings in different locales. When a user from another locale visits your page, your string is replaced with the correct translated version."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"In Django"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_04c1ea2e","line":90,"updated":"2016-06-27 22:56:15.000000000","message":"make* simply*","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":88,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"To take your strings translatable, you simple need to mark it so that horizon"},{"line_number":91,"context_line":"can locate and extract it into a POT file. From there, something magical happens and a PO file is generated containing all of the translatable strings in different locales. When a user from another locale visits your page, your string is replaced with the correct translated version."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"In Django"},{"line_number":94,"context_line":"---------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_44e132d0","line":91,"updated":"2016-06-27 22:56:15.000000000","message":"wrap?","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":94,"context_line":"---------"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"To translate a string, simply wrap the string around one of the gettext"},{"line_number":97,"context_line":"variants. Them examples below show you how to do translation for various"},{"line_number":98,"context_line":"scenarios, such as interpolation, contextual markers, translation comments, etc."},{"line_number":99,"context_line":"::"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_a4fd7670","line":97,"updated":"2016-06-27 22:56:15.000000000","message":"wrap one of the gettext variants around the string*\n\nthe* examples...","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d34aa0becbb0859d29ef59865a50339fa565f259","unresolved":false,"context_lines":[{"line_number":191,"context_line":""},{"line_number":192,"context_line":"  The annotions in the example above are guaranteed to work. However, not all of"},{"line_number":193,"context_line":"  the angular-gettext annotions are supported because we wrote our own custom"},{"line_number":194,"context_line":"  babel extractor. If you need support for the annotations, feel free to let us"},{"line_number":195,"context_line":"  know or update the code yourself."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3aaa91ec_04f9ea4d","line":194,"updated":"2016-06-27 22:56:15.000000000","message":"mention avoid putting other html stuff into the \u003cdiv\u003e, otherwise it can screw up translation\n\navoid: \n\u003cdiv translate\u003e\n  \u003cspan class\u003d\"fa fa-bug\"\u003e\u003c/span\u003e\n  Attribute example\n\u003c/div\u003e","commit_id":"975bdbe34f3f3246f17aabbb38179929d8b07c7b"},{"author":{"_account_id":22314,"name":"Ryan Selden","email":"seldenr@icloud.com","username":"seldenr"},"change_message_id":"bdcec61e6bf4f8c9fe48b06ba3f3c509b7d662e2","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"If you are writing software for a global audience, you will want to ensure that it"},{"line_number":13,"context_line":"is translated so that other people around the world are able to use it. Adding translation"},{"line_number":14,"context_line":"to your code is not that hard and the benefits of it outweights the work you have to"},{"line_number":15,"context_line":"put in."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Overview and Architecture"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bacf61ea_7ff75e59","line":14,"range":{"start_line":14,"start_character":53,"end_line":14,"end_character":63},"updated":"2016-08-03 20:27:42.000000000","message":"outweigh","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"6eb3588aaced3ebc0903b082355b8208a44c8764","unresolved":false,"context_lines":[{"line_number":66,"context_line":"process is entirely different. Lets walk through this process."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"* Remember those markers we talked about earlier? Most of them are functions"},{"line_number":69,"context_line":"  like gettext or one its variant. This allows the function to serve a dual"},{"line_number":70,"context_line":"  purpose - acting as a marker and also as a replacer."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"* In order for translation to work properly, we need to know the user’s locale."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_89003504","line":69,"updated":"2016-07-14 20:09:44.000000000","message":"one its variant? is this meant to say \u0027one of its variants\u0027 or is this a break in my knowledge?","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":22314,"name":"Ryan Selden","email":"seldenr@icloud.com","username":"seldenr"},"change_message_id":"bdcec61e6bf4f8c9fe48b06ba3f3c509b7d662e2","unresolved":false,"context_lines":[{"line_number":66,"context_line":"process is entirely different. Lets walk through this process."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"* Remember those markers we talked about earlier? Most of them are functions"},{"line_number":69,"context_line":"  like gettext or one its variant. This allows the function to serve a dual"},{"line_number":70,"context_line":"  purpose - acting as a marker and also as a replacer."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"* In order for translation to work properly, we need to know the user’s locale."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bacf61ea_8218f976","line":69,"in_reply_to":"1aa78d24_89003504","updated":"2016-08-03 20:27:42.000000000","message":"yeah sounds like it needs a grammatical fix","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"7a8021e4d1d3a7089de820579dcc0a02719b9063","unresolved":false,"context_lines":[{"line_number":66,"context_line":"process is entirely different. Lets walk through this process."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"* Remember those markers we talked about earlier? Most of them are functions"},{"line_number":69,"context_line":"  like gettext or one its variant. This allows the function to serve a dual"},{"line_number":70,"context_line":"  purpose - acting as a marker and also as a replacer."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"* In order for translation to work properly, we need to know the user’s locale."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_a2c46192","line":69,"in_reply_to":"bacf61ea_8218f976","updated":"2016-08-08 15:44:27.000000000","message":"\u0027one of its variants.\u0027","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":22314,"name":"Ryan Selden","email":"seldenr@icloud.com","username":"seldenr"},"change_message_id":"bdcec61e6bf4f8c9fe48b06ba3f3c509b7d662e2","unresolved":false,"context_lines":[{"line_number":87,"context_line":"Making strings translatable"},{"line_number":88,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"To take your strings translatable, you simply need to mark it so that horizon"},{"line_number":91,"context_line":"can locate and extract it into a POT file. From there, something magical happens and a"},{"line_number":92,"context_line":"PO file is generated containing all of the translatable strings in different locales."},{"line_number":93,"context_line":"When a user from another locale visits your page, your string is replaced with the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bacf61ea_8246394d","line":90,"range":{"start_line":90,"start_character":3,"end_line":90,"end_character":7},"updated":"2016-08-03 20:27:42.000000000","message":"also take should be make, no?\n\"To make your strings translatable\"","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"6eb3588aaced3ebc0903b082355b8208a44c8764","unresolved":false,"context_lines":[{"line_number":87,"context_line":"Making strings translatable"},{"line_number":88,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"To take your strings translatable, you simply need to mark it so that horizon"},{"line_number":91,"context_line":"can locate and extract it into a POT file. From there, something magical happens and a"},{"line_number":92,"context_line":"PO file is generated containing all of the translatable strings in different locales."},{"line_number":93,"context_line":"When a user from another locale visits your page, your string is replaced with the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_ac1c1f6b","line":90,"updated":"2016-07-14 20:09:44.000000000","message":"change strings to singular or it to them to keep plurals consistent","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"4dcfa483f2cd59276c980d485087615fd69e00fa","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"..  Note ::"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"  In the example below, we substituted **ugettext** as **_**. This is a common"},{"line_number":133,"context_line":"  alias for gettext or any of its variants. In Django, you have to explicitly"},{"line_number":134,"context_line":"  spell it out with the import statement."},{"line_number":135,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"3aaa91ec_ca1601a6","line":132,"range":{"start_line":132,"start_character":17,"end_line":132,"end_character":22},"updated":"2016-07-01 09:04:09.000000000","message":"Above?","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"4dcfa483f2cd59276c980d485087615fd69e00fa","unresolved":false,"context_lines":[{"line_number":137,"context_line":"-------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"To use translation in your template, make sure you load the i18n module. To"},{"line_number":140,"context_line":"translate a line of text, use the **trans** template tag. If you need to"},{"line_number":141,"context_line":"translate a block of text, use the **blocktrans** template tag."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"Sometimes, it is helpful to provide some context via the **comment** template"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3aaa91ec_8a707909","line":140,"range":{"start_line":140,"start_character":34,"end_line":140,"end_character":43},"updated":"2016-07-01 09:04:09.000000000","message":"We should use the inline code marker for these IMO, since its all code references.","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"4dcfa483f2cd59276c980d485087615fd69e00fa","unresolved":false,"context_lines":[{"line_number":138,"context_line":""},{"line_number":139,"context_line":"To use translation in your template, make sure you load the i18n module. To"},{"line_number":140,"context_line":"translate a line of text, use the **trans** template tag. If you need to"},{"line_number":141,"context_line":"translate a block of text, use the **blocktrans** template tag."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"Sometimes, it is helpful to provide some context via the **comment** template"},{"line_number":144,"context_line":"tag. There a number of other tags and filters at your disposal should you need"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3aaa91ec_0a5be986","line":141,"range":{"start_line":141,"start_character":35,"end_line":141,"end_character":49},"updated":"2016-07-01 09:04:09.000000000","message":"ditto","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"4dcfa483f2cd59276c980d485087615fd69e00fa","unresolved":false,"context_lines":[{"line_number":140,"context_line":"translate a line of text, use the **trans** template tag. If you need to"},{"line_number":141,"context_line":"translate a block of text, use the **blocktrans** template tag."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"Sometimes, it is helpful to provide some context via the **comment** template"},{"line_number":144,"context_line":"tag. There a number of other tags and filters at your disposal should you need"},{"line_number":145,"context_line":"to use them. For more information, see the Django docs [#]_."},{"line_number":146,"context_line":"::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3aaa91ec_6a56ed5c","line":143,"range":{"start_line":143,"start_character":57,"end_line":143,"end_character":68},"updated":"2016-07-01 09:04:09.000000000","message":"ditto","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"6eb3588aaced3ebc0903b082355b8208a44c8764","unresolved":false,"context_lines":[{"line_number":194,"context_line":"      This \u003cem\u003eis\u003c/em\u003e a \u003cstrong\u003ebad\u003c/strong\u003e example"},{"line_number":195,"context_line":"      because it contains HTML and makes it harder to translate."},{"line_number":196,"context_line":"    \u003c/span\u003e"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"..  Note ::"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"  The annotions in the example above are guaranteed to work. However, not all of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_2cc94fad","line":197,"updated":"2016-07-14 20:09:44.000000000","message":"with the \u0027bad example\u0027 would the output still be translated correctly even though it is harder to translate? What is the correct way to deal with translation for a case such as this?","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":22314,"name":"Ryan Selden","email":"seldenr@icloud.com","username":"seldenr"},"change_message_id":"bdcec61e6bf4f8c9fe48b06ba3f3c509b7d662e2","unresolved":false,"context_lines":[{"line_number":194,"context_line":"      This \u003cem\u003eis\u003c/em\u003e a \u003cstrong\u003ebad\u003c/strong\u003e example"},{"line_number":195,"context_line":"      because it contains HTML and makes it harder to translate."},{"line_number":196,"context_line":"    \u003c/span\u003e"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"..  Note ::"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"  The annotions in the example above are guaranteed to work. However, not all of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bacf61ea_828bd967","line":197,"in_reply_to":"1aa78d24_2cc94fad","updated":"2016-08-03 20:27:42.000000000","message":"+1","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":22314,"name":"Ryan Selden","email":"seldenr@icloud.com","username":"seldenr"},"change_message_id":"bdcec61e6bf4f8c9fe48b06ba3f3c509b7d662e2","unresolved":false,"context_lines":[{"line_number":200,"context_line":"  The annotions in the example above are guaranteed to work. However, not all of"},{"line_number":201,"context_line":"  the angular-gettext annotions are supported because we wrote our own custom"},{"line_number":202,"context_line":"  babel extractor. If you need support for the annotations, feel free to let us"},{"line_number":203,"context_line":"  know or update the code yourself. Also note that you should avoid embedding HTML"},{"line_number":204,"context_line":"  fragments in your texts because it makes it harder to translate."},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"References"},{"line_number":207,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bacf61ea_82e2b92d","line":204,"range":{"start_line":203,"start_character":68,"end_line":204,"end_character":11},"updated":"2016-08-03 20:27:42.000000000","message":"ditto to Beth\u0027s comment above - what if this is necessary? How should it be done properly?","commit_id":"18b29f47aef5882b8bf7faebcebfb6ce42728fc6"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"fedad7a3b93150380b02af3aaa144b2dbd3efde0","unresolved":false,"context_lines":[{"line_number":7,"context_line":""},{"line_number":8,"context_line":"You introduced an awesome piece of code and revel in your glorious"},{"line_number":9,"context_line":"accomplishment. Suddenly your world comes crashing down when a core hands you"},{"line_number":10,"context_line":"a -1 because your code is not translated. What gives?"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"If you are writing software for a global audience, you must ensure that it is"},{"line_number":13,"context_line":"translated so that other people around the world are able to use it. Adding"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_2caddc88","line":10,"updated":"2016-08-25 06:44:40.000000000","message":"Not convinced we need to be quite so ... prosaic here :-)","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":7,"context_line":""},{"line_number":8,"context_line":"You introduced an awesome piece of code and revel in your glorious"},{"line_number":9,"context_line":"accomplishment. Suddenly your world comes crashing down when a core hands you"},{"line_number":10,"context_line":"a -1 because your code is not translated. What gives?"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"If you are writing software for a global audience, you must ensure that it is"},{"line_number":13,"context_line":"translated so that other people around the world are able to use it. Adding"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_34b2ec94","line":10,"in_reply_to":"1ac06dbe_2caddc88","updated":"2016-08-29 18:22:18.000000000","message":"Doesnt hurt to have an intro haha","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"fedad7a3b93150380b02af3aaa144b2dbd3efde0","unresolved":false,"context_lines":[{"line_number":14,"context_line":"translation to your code is not that hard and a requirement for horizon."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If you are interested in contributing translations, you may want to investigate"},{"line_number":17,"context_line":"`Zanata \u003chttps://translate.openstack.org\u003e`_ and the "},{"line_number":18,"context_line":"`upstream translations \u003chttps://wiki.openstack.org/wiki/Translations\u003e`_."},{"line_number":19,"context_line":"You can visit the internationalization project IRC channel **#openstack-i18n**,"},{"line_number":20,"context_line":"if you need further assistance."}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_4cbad8c1","line":17,"updated":"2016-08-25 06:44:40.000000000","message":"I see red!","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"translation to your code is not that hard and a requirement for horizon."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If you are interested in contributing translations, you may want to investigate"},{"line_number":17,"context_line":"`Zanata \u003chttps://translate.openstack.org\u003e`_ and the "},{"line_number":18,"context_line":"`upstream translations \u003chttps://wiki.openstack.org/wiki/Translations\u003e`_."},{"line_number":19,"context_line":"You can visit the internationalization project IRC channel **#openstack-i18n**,"},{"line_number":20,"context_line":"if you need further assistance."}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_57405234","line":17,"in_reply_to":"1ac06dbe_4cbad8c1","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d3789696dab5a1271b3b653b048d4aa152d5c6e6","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If you are interested in contributing translations, you may want to investigate"},{"line_number":17,"context_line":"`Zanata \u003chttps://translate.openstack.org\u003e`_ and the "},{"line_number":18,"context_line":"`upstream translations \u003chttps://wiki.openstack.org/wiki/Translations\u003e`_."},{"line_number":19,"context_line":"You can visit the internationalization project IRC channel **#openstack-i18n**,"},{"line_number":20,"context_line":"if you need further assistance."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_0c1ba91d","line":18,"range":{"start_line":18,"start_character":23,"end_line":18,"end_character":69},"updated":"2016-08-25 13:12:04.000000000","message":"It is better to refer to http://docs.openstack.org/developer/i18n/ .\nThis page is maintained by the i18n team.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If you are interested in contributing translations, you may want to investigate"},{"line_number":17,"context_line":"`Zanata \u003chttps://translate.openstack.org\u003e`_ and the "},{"line_number":18,"context_line":"`upstream translations \u003chttps://wiki.openstack.org/wiki/Translations\u003e`_."},{"line_number":19,"context_line":"You can visit the internationalization project IRC channel **#openstack-i18n**,"},{"line_number":20,"context_line":"if you need further assistance."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_b74efe6c","line":18,"range":{"start_line":18,"start_character":23,"end_line":18,"end_character":69},"in_reply_to":"1ac06dbe_0c1ba91d","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"fedad7a3b93150380b02af3aaa144b2dbd3efde0","unresolved":false,"context_lines":[{"line_number":46,"context_line":"   to locate them. Refer to the guide below on how to use translation and what"},{"line_number":47,"context_line":"   these markers look like."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"2. Once marked, we can then run ``./run_tests.sh --makemessages``, which"},{"line_number":50,"context_line":"   searches the codebase for these markers and extracts them into a Portable"},{"line_number":51,"context_line":"   Object Template (POT) file. In horizon, we extract from both the ``horizon``"},{"line_number":52,"context_line":"   folder and the ``openstack_dashboard`` folder. We use the AngularJS extractor"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_2cf2fc9a","line":49,"updated":"2016-08-25 06:44:40.000000000","message":"I think it might be worth mentioning horizon.utils.babel_extract_angular which is a key part of this process, but not necessarily one that\u0027s easily found.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"   to locate them. Refer to the guide below on how to use translation and what"},{"line_number":47,"context_line":"   these markers look like."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"2. Once marked, we can then run ``./run_tests.sh --makemessages``, which"},{"line_number":50,"context_line":"   searches the codebase for these markers and extracts them into a Portable"},{"line_number":51,"context_line":"   Object Template (POT) file. In horizon, we extract from both the ``horizon``"},{"line_number":52,"context_line":"   folder and the ``openstack_dashboard`` folder. We use the AngularJS extractor"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_b738bea1","line":49,"in_reply_to":"1ac06dbe_2cf2fc9a","updated":"2016-08-29 18:22:18.000000000","message":"I thought about going into more details, but it adds more complexity to the translation guide. The goal of this guide is to introduce the overview and show how things connect.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d3789696dab5a1271b3b653b048d4aa152d5c6e6","unresolved":false,"context_lines":[{"line_number":59,"context_line":"  correctly. All creation of POT and PO files is handled by a daily upstream"},{"line_number":60,"context_line":"  job. Further information can be found in the"},{"line_number":61,"context_line":"  `translation infrastucture documentation"},{"line_number":62,"context_line":"  \u003chttps://wiki.openstack.org/wiki/Translations/Infrastructure\u003e`_."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Message Substitution"},{"line_number":65,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_ec81edfc","line":62,"range":{"start_line":62,"start_character":2,"end_line":62,"end_character":66},"updated":"2016-08-25 13:12:04.000000000","message":"We are migrating the contents to http://docs.openstack.org/developer/i18n/infra.html now.","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":59,"context_line":"  correctly. All creation of POT and PO files is handled by a daily upstream"},{"line_number":60,"context_line":"  job. Further information can be found in the"},{"line_number":61,"context_line":"  `translation infrastucture documentation"},{"line_number":62,"context_line":"  \u003chttps://wiki.openstack.org/wiki/Translations/Infrastructure\u003e`_."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Message Substitution"},{"line_number":65,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_374d8e3e","line":62,"range":{"start_line":62,"start_character":2,"end_line":62,"end_character":66},"in_reply_to":"1ac06dbe_ec81edfc","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d3789696dab5a1271b3b653b048d4aa152d5c6e6","unresolved":false,"context_lines":[{"line_number":191,"context_line":"      var translated \u003d gettext(‘Images’);"},{"line_number":192,"context_line":"    }"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"..  Note ::"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  This is extremely **important**. For localization in AngularJS files, use the"},{"line_number":197,"context_line":"  AngularJS service ``horizon.framework.util.i18n.gettext``. Ensure that the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_97c96228","line":194,"range":{"start_line":194,"start_character":4,"end_line":194,"end_character":8},"updated":"2016-08-25 13:12:04.000000000","message":"There is \u0027important\u0027 directive in sphinx.\n\n .. important::","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":191,"context_line":"      var translated \u003d gettext(‘Images’);"},{"line_number":192,"context_line":"    }"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"..  Note ::"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  This is extremely **important**. For localization in AngularJS files, use the"},{"line_number":197,"context_line":"  AngularJS service ``horizon.framework.util.i18n.gettext``. Ensure that the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_779d5665","line":194,"range":{"start_line":194,"start_character":4,"end_line":194,"end_character":8},"in_reply_to":"1ac06dbe_97c96228","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"fedad7a3b93150380b02af3aaa144b2dbd3efde0","unresolved":false,"context_lines":[{"line_number":245,"context_line":"#. Make sure your English po file is up to date:"},{"line_number":246,"context_line":"   ``./run_tests.sh --makemessages``"},{"line_number":247,"context_line":"#. Run the pseudo tool to create pseudo translations. For example, to replace"},{"line_number":248,"context_line":"   the German translation with a pseudo translation: "},{"line_number":249,"context_line":"   ``./run_tests.sh --pseudo de``"},{"line_number":250,"context_line":"#. Compile the catalog: ``./run_tests.sh --compilemessages``"},{"line_number":251,"context_line":"#. Run your development server."}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ac06dbe_ec3e2428","line":248,"updated":"2016-08-25 06:44:40.000000000","message":"OMGREDZOR","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"3a4060b77ad38a420819ba4c8077e5cab475830e","unresolved":false,"context_lines":[{"line_number":245,"context_line":"#. Make sure your English po file is up to date:"},{"line_number":246,"context_line":"   ``./run_tests.sh --makemessages``"},{"line_number":247,"context_line":"#. Run the pseudo tool to create pseudo translations. For example, to replace"},{"line_number":248,"context_line":"   the German translation with a pseudo translation: "},{"line_number":249,"context_line":"   ``./run_tests.sh --pseudo de``"},{"line_number":250,"context_line":"#. Compile the catalog: ``./run_tests.sh --compilemessages``"},{"line_number":251,"context_line":"#. Run your development server."}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa7ab95a_d7662250","line":248,"in_reply_to":"1ac06dbe_ec3e2428","updated":"2016-08-29 18:22:18.000000000","message":"Done","commit_id":"70102ea313a8ce4d771da2d3b285a28302193e68"}]}
