Skip to content

Instantly share code, notes, and snippets.

@tgxworld
Created January 17, 2017 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgxworld/0a32269987440f7bdeae2df7ee88e98e to your computer and use it in GitHub Desktop.
Save tgxworld/0a32269987440f7bdeae2df7ee88e98e to your computer and use it in GitHub Desktop.
test("search with context enabled", assert => {
server.get('/t/280/73.json', () => {
return [
200,
{ "Content-Type": "application/json" },
{"post_stream":{"posts":[{"id":10846,"name":"Martin Potthast","username":"potthast","avatar_template":"/user_avatar/localhost/potthast/{size}/11363_1.png","created_at":"2013-03-10T22:38:19.665Z","cooked":"<p>I am about to issue a pull-request for a first translation of Discourse into German. While doing it over the weekend, I came across a simple issue that renders proper translation of some phrases impossible: in the code, phrases are composed of too fine-grained units.</p>\n\n<p>Take this simple example of a phrase: </p>\n\n<pre><code>{{Username}} edited {{Topic Title}}.</code></pre>\n\n<p>In the code, this happens to be broken down into the three units \"{{Username}}\" (variable for the user who did something), \"edited\" (some action), and \"{{Topic Title}}\" (variable for the topic title affected).</p>\n\n<p>This works fine for English, but in German, to make it sound normal, I'd have to rearrange the sentence like so:</p>\n\n<pre><code>{{Username}} hat {{Topic Title}} bearbeitet.</code></pre>\n\n<p>So, to allow for better localization, I'd suggest that, as a rule, externalized strings shall be made as long as possible (covering at least everything that is inline). This way, translators are at liberty to rearrange words as needed.</p>","post_number":68,"post_type":1,"updated_at":"2013-03-10T22:38:19.665Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":12,"incoming_link_count":21,"reads":166,"score":303.6,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Martin Potthast","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[{"id":2,"count":7}],"moderator":false,"admin":false,"staff":false,"user_id":3620,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":10893,"name":"Anders Sandvik","username":"Andersos","avatar_template":"/user_avatar/localhost/andersos/{size}/11005_1.png","created_at":"2013-03-11T06:02:25.481Z","cooked":"<p>I am working on the Norwegian version of the translated files. </p>","post_number":69,"post_type":1,"updated_at":"2013-03-11T06:02:25.481Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":11,"incoming_link_count":2,"reads":150,"score":130.35,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Anders Sandvik","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[{"id":2,"count":2}],"moderator":false,"admin":false,"staff":false,"user_id":3403,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":10994,"name":"Tattoo","username":"tattoo","avatar_template":"https://avatars.discourse.org/v2/letter/t/9de0a6/{size}.png","created_at":"2013-03-12T03:03:40.270Z","cooked":"<p><a class=\"mention\" href=\"/users/alxndr\">@alxndr</a>, you need to modify the default_locale to zh_CN in site preferences:</p>\n\n<p><img src=\"https://meta-s3-cdn.global.ssl.fastly.net/original/1X/acfa284f653fd40be9b78ed8c55da22b9074906e.png\" width=\"433\" height=\"82\"></p>","post_number":70,"post_type":1,"updated_at":"2013-03-12T03:03:40.270Z","reply_count":1,"reply_to_post_number":67,"quote_count":0,"avg_time":9,"incoming_link_count":1,"reads":137,"score":37.65,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Tattoo","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"alxndr","avatar_template":"/user_avatar/localhost/alxndr/{size}/5619_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":2995,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11001,"name":"Alexander","username":"alxndr","avatar_template":"/user_avatar/localhost/alxndr/{size}/5619_1.png","created_at":"2013-03-12T04:46:20.868Z","cooked":"<p>我已经载入了语言选项,服务器没问题,其实还发现了JS的错误。</p>\n\n<p>(lameness filter is lame。。。)</p>","post_number":71,"post_type":1,"updated_at":"2013-03-12T04:46:20.868Z","reply_count":1,"reply_to_post_number":70,"quote_count":0,"avg_time":10,"incoming_link_count":0,"reads":136,"score":32.7,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Alexander","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"tattoo","avatar_template":"https://avatars.discourse.org/v2/letter/t/9de0a6/{size}.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":212,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11107,"name":"Tattoo","username":"tattoo","avatar_template":"https://avatars.discourse.org/v2/letter/t/9de0a6/{size}.png","created_at":"2013-03-13T00:14:41.874Z","cooked":"<p>是什么样的JS错误?我刚刚发现在zh_CN选项下无法添加新分类:http://meta.discourse.org/t/failed-to-create-new-category-when-set-the-default-locale-to-zh-cn/4703</p>","post_number":72,"post_type":1,"updated_at":"2013-03-13T00:14:41.874Z","reply_count":0,"reply_to_post_number":71,"quote_count":0,"avg_time":13,"incoming_link_count":0,"reads":134,"score":27.45,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Tattoo","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"alxndr","avatar_template":"/user_avatar/localhost/alxndr/{size}/5619_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":2995,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11221,"name":"Kuba","username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","created_at":"2013-03-13T19:29:28.974Z","cooked":"<p>I would like to say a few things about the current state of l10n and i18n. Here's what we have now:</p>\n\n<ul>\n<li>contributed translations: German, French, Czech, Dutch, Indonesian, Portugese, Swedish and Chinese. Some of them are complete and up-to-date, some are worse. E.g. the <a href=\"https://github.com/discourse/discourse/blob/master/config/locales/client.nl.yml\" rel=\"nofollow\">Dutch client-side translation</a> seems to be somehow completely broken.</li>\n<li>locale switching in the site settings</li>\n<li>(hopefully) working international date formats, including things like \"10 minutes ago\", \"just now\", etc. The formats are taken from <a href=\"http://sugarjs.com/dates#date_locales\" rel=\"nofollow\">Sugar's Date i18n support</a> on the JavaScript side, and some formats are also specified in the locale files for the server side. Sugar does not support Czech language, but it was <a href=\"https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/date_locales.js\" rel=\"nofollow\">easy to implement it</a>.</li>\n</ul>\n\n<p>Surprisingly, this alone makes Discourse very usable in other locales. It's not 100% perfect, but unless you start closely examining, you probably won't notice any issues. There are still a few things to do, such as:</p>\n\n<ul>\n<li>concatenated sentences, such as \"2 people liked this\": This is actually three individual pieces simply concatenated together, which works in English, but almost nowhere else.</li>\n<li>gender: \"you liked this\" translates differently (in Czech) when \"you\" are male and when \"you\" are female</li>\n</ul>\n\n<p>And much more, but these are the most obvious now. I am not sure if Discourse plans to include genders for users. Anyway, I will be working on finding and fixing wrongly concatenated strings, and there are quite a lot of them.</p>","post_number":73,"post_type":1,"updated_at":"2013-03-13T19:29:28.974Z","reply_count":3,"reply_to_post_number":null,"quote_count":0,"avg_time":17,"incoming_link_count":0,"reads":141,"score":164.05,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Kuba","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/discourse/discourse/blob/master/config/locales/client.nl.yml","internal":false,"reflection":false,"title":"discourse/config/locales/client.nl.yml at master · discourse/discourse · GitHub","clicks":7},{"url":"http://sugarjs.com/dates#date_locales","internal":false,"reflection":false,"title":"Dates - Sugar","clicks":1},{"url":"https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/date_locales.js","internal":false,"reflection":false,"clicks":1}],"read":true,"user_title":"Great contributor","actions_summary":[{"id":2,"count":4}],"moderator":false,"admin":false,"staff":false,"user_id":461,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11225,"name":"Alexander","username":"alxndr","avatar_template":"/user_avatar/localhost/alxndr/{size}/5619_1.png","created_at":"2013-03-13T20:01:04.415Z","cooked":"<p>Also, numeral agreement in many languages can be tricky -- AFAIK Arabic has six numerical cases, which would come up in a string like:</p>\n\n<pre><code> new_topics_inserted: \"{{count}} new topics.\"</code></pre>","post_number":74,"post_type":1,"updated_at":"2013-03-13T20:01:04.415Z","reply_count":0,"reply_to_post_number":73,"quote_count":0,"avg_time":12,"incoming_link_count":1,"reads":131,"score":31.8,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Alexander","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":212,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11229,"name":"David Capello","username":"dacap","avatar_template":"/user_avatar/localhost/dacap/{size}/7401_1.png","created_at":"2013-03-13T20:45:14.629Z","cooked":"<p>I think that it will be a good idea to have a comment in each <code>client.XX.yml</code> file with the related commit that the file was synced with. E.g.:</p>\n\n<p><code># Updated with client.en.yml from commit 21b5183d6ab8c41ede8371d00e834865d3b35299</code></p>\n\n<p>This makes easy to keep track all differences between the last <code>client.en.yml</code> and the used <code>client.en.yml</code> version to create that specific <code>client.XX.yml</code> translation. (It will be useful for future translators in case that some one want to continue the translation process of a specific language.)</p>\n\n<p>My workflow:<br>1) I pull changes from <code>upstream</code> branch<br>2) I diff the commit # specified in my <code>client.es.yml</code> comment with the last <code>client.en.yml</code> in the master branch<br>3) With those differences I know what strings have changed (and what was added/removed)<br>4) I update my <code>client.es.yml</code> with those new changes, and update the commit # in the comment (so in the future I, or other translators, know from where we've to diff future versions of <code>client.en.yml</code>)</p>","post_number":75,"post_type":1,"updated_at":"2013-03-13T20:45:14.629Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":11,"incoming_link_count":0,"reads":142,"score":45.95,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"David Capello","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":1275,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":11251,"name":"Sam Saffron","username":"sam","avatar_template":"/user_avatar/localhost/sam/{size}/5243_1.png","created_at":"2013-03-13T22:17:34.845Z","cooked":"<aside class=\"quote\" data-post=\"73\" data-topic=\"280\"><div class=\"title\">\n<div class=\"quote-controls\"></div>\n<img alt=\"\" width=\"20\" height=\"20\" src=\"https://cdn-enterprise.discourse.org/meta/user_avatar/meta.discourse.org/kuba/40/6049_1.png\" class=\"avatar\">kuba:</div>\n<blockquote><p>. I am not sure if Discourse plans to include genders for users</p></blockquote></aside>\n\n<p>We totally do, we must include that other wise stuff gets fairly weird in all sorts of languagues. PR welcome. </p>","post_number":76,"post_type":1,"updated_at":"2013-03-13T22:17:34.845Z","reply_count":0,"reply_to_post_number":73,"quote_count":1,"avg_time":12,"incoming_link_count":1,"reads":137,"score":33.0,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Sam Saffron","primary_group_name":"team","primary_group_flair_url":"https://meta-s3-cdn.global.ssl.fastly.net/original/3X/0/6/068854da7eaf9184973a0e4729cfbeebe2363569.png","primary_group_flair_bg_color":"","primary_group_flair_color":"","version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":"co-founder","reply_to_user":{"username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png"},"actions_summary":[],"moderator":true,"admin":true,"staff":true,"user_id":1,"hidden":false,"hidden_reason_id":null,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"user_custom_fields":{"date_of_birth":"1904-6-25"}},{"id":11660,"name":"Mikkel Høgh","username":"mikl","avatar_template":"/user_avatar/localhost/mikl/{size}/9918_1.png","created_at":"2013-03-18T21:15:12.429Z","cooked":"<p>I have started working on a Danish translation. If you know the language, feel free to help out. You can track my progress here: <a href=\"https://github.com/discourse/discourse/pull/493\" rel=\"nofollow\">https://github.com/discourse/discourse/pull/493</a></p>","post_number":77,"post_type":1,"updated_at":"2013-03-18T21:53:37.318Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":11,"incoming_link_count":1,"reads":142,"score":123.95,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Mikkel Høgh","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":2,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/discourse/discourse/pull/493","internal":false,"reflection":false,"title":"Danish translation. by mikl · Pull Request #493 · discourse/discourse · GitHub","clicks":13}],"read":true,"user_title":"Contributor","actions_summary":[{"id":2,"count":2}],"moderator":false,"admin":false,"staff":false,"user_id":2753,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12453,"name":"Tudor","username":"Tudor","avatar_template":"/user_avatar/localhost/tudor/{size}/11675_1.png","created_at":"2013-03-25T15:47:10.351Z","cooked":"<p>For testing purposes I changed <em>default_locale</em> to es, only to find out I did not have any spanish files. Turns out that setting <em>default_locale</em> to a non existing locale really messes things up. Maybe it should default to en if it does not find any files for the set locale?</p>","post_number":78,"post_type":1,"updated_at":"2013-03-25T15:47:10.351Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"avg_time":10,"incoming_link_count":0,"reads":128,"score":31.1,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Tudor","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":3818,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12454,"name":"Tudor","username":"Tudor","avatar_template":"/user_avatar/localhost/tudor/{size}/11675_1.png","created_at":"2013-03-25T16:23:04.349Z","cooked":"<p>Setting invalid value to default_locale turned out more serious than I thought - the no brainer solution, I thought, would be to create a dummy client.es.yml | server.es.yml of the english files to be back on track - but I can't seem to recover that easy. Any ideas?</p>","post_number":79,"post_type":1,"updated_at":"2013-03-25T16:23:04.349Z","reply_count":1,"reply_to_post_number":78,"quote_count":0,"avg_time":10,"incoming_link_count":0,"reads":128,"score":31.1,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Tudor","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"Tudor","avatar_template":"/user_avatar/localhost/tudor/{size}/11675_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":3818,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12462,"name":"Robin Ward","username":"eviltrout","avatar_template":"/user_avatar/localhost/eviltrout/{size}/5275_1.png","created_at":"2013-03-25T17:56:48.513Z","cooked":"<p>You should be able to fix using rails console:</p>\n\n<p></p><pre><code class=\"lang-auto\">bundle exec rails console\nSiteSetting.default_locale = 'en'</code></pre>\n\n<p>Then restart your rails process to be safe. It should come back up in english.</p>","post_number":80,"post_type":1,"updated_at":"2013-03-25T17:56:48.513Z","reply_count":0,"reply_to_post_number":79,"quote_count":0,"avg_time":11,"incoming_link_count":2,"reads":130,"score":81.55,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Robin Ward","primary_group_name":"team","primary_group_flair_url":"https://meta-s3-cdn.global.ssl.fastly.net/original/3X/0/6/068854da7eaf9184973a0e4729cfbeebe2363569.png","primary_group_flair_bg_color":"","primary_group_flair_color":"","version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":"co-founder","reply_to_user":{"username":"Tudor","avatar_template":"/user_avatar/localhost/tudor/{size}/11675_1.png"},"actions_summary":[{"id":2,"count":3}],"moderator":true,"admin":true,"staff":true,"user_id":19,"hidden":false,"hidden_reason_id":null,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12624,"name":"mojzis","username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png","created_at":"2013-03-27T10:04:40.786Z","cooked":"<p>i think it would be good to separate the language of the /admin part and the rest. There's way too much to translate and admins should understand english anyway and its also more precise ...</p>","post_number":81,"post_type":1,"updated_at":"2013-03-27T10:04:40.786Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"avg_time":9,"incoming_link_count":0,"reads":119,"score":44.25,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"mojzis","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[{"id":2,"count":1}],"moderator":false,"admin":false,"staff":false,"user_id":3704,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12625,"name":"Kuba","username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","created_at":"2013-03-27T10:11:25.053Z","cooked":"<p>This is already done. See <a href=\"https://github.com/discourse/discourse/blob/master/config/locales/client.en.yml#L691\" rel=\"nofollow\">the \"admin_js\" part of client.en.yml</a>.</p>","post_number":82,"post_type":1,"updated_at":"2013-03-27T10:11:25.053Z","reply_count":1,"reply_to_post_number":81,"quote_count":0,"avg_time":9,"incoming_link_count":0,"reads":121,"score":44.65,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Kuba","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/discourse/discourse/blob/master/config/locales/client.en.yml#L691","internal":false,"reflection":false,"title":"discourse/config/locales/client.en.yml at master · discourse/discourse · GitHub","clicks":9}],"read":true,"user_title":"Great contributor","reply_to_user":{"username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png"},"actions_summary":[{"id":2,"count":1}],"moderator":false,"admin":false,"staff":false,"user_id":461,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12627,"name":"mojzis","username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png","created_at":"2013-03-27T10:25:10.407Z","cooked":"<p>great, thanks <img src=\"https://cdn-enterprise.discourse.org/meta/images/emoji/twitter/slightly_smiling.png?v=1\" title=\":slightly_smiling:\" class=\"emoji\" alt=\":slightly_smiling:\"> what should i do to make it talk english to me ? i see czech strings in admin <img src=\"https://cdn-enterprise.discourse.org/meta/images/emoji/twitter/slightly_smiling.png?v=1\" title=\":slightly_smiling:\" class=\"emoji\" alt=\":slightly_smiling:\"> (\"Administrátorský rozcestník <img src=\"https://cdn-enterprise.discourse.org/meta/images/emoji/twitter/slightly_smiling.png?v=1\" title=\":slightly_smiling:\" class=\"emoji\" alt=\":slightly_smiling:\"></p>","post_number":83,"post_type":1,"updated_at":"2013-03-27T10:25:10.407Z","reply_count":1,"reply_to_post_number":82,"quote_count":0,"avg_time":9,"incoming_link_count":1,"reads":123,"score":35.05,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"mojzis","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":3704,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12628,"name":"Kuba","username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","created_at":"2013-03-27T10:27:07.603Z","cooked":"<p>You want your forum to be localized but the admin section to stay in English? Why would you want that if the localization is complete and includes the admin as welll?</p>","post_number":84,"post_type":1,"updated_at":"2013-03-27T10:27:07.603Z","reply_count":0,"reply_to_post_number":83,"quote_count":0,"avg_time":9,"incoming_link_count":0,"reads":123,"score":25.05,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Kuba","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":"Great contributor","reply_to_user":{"username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png"},"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":461,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12629,"name":"mojzis","username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png","created_at":"2013-03-27T10:31:17.796Z","cooked":"<p>and it's a great job ! (on the czech translation at least <img src=\"https://cdn-enterprise.discourse.org/meta/images/emoji/twitter/slightly_smiling.png?v=1\" title=\":slightly_smiling:\" class=\"emoji\" alt=\":slightly_smiling:\"> it's probably just me - used to do stuff in english ... the variables are in english anyway ... and i suppose the admin part will move more quickly, thus require changes in translation more often ... </p>","post_number":85,"post_type":1,"updated_at":"2013-03-27T10:31:17.796Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"avg_time":10,"incoming_link_count":0,"reads":121,"score":29.7,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"mojzis","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":null,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":3704,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12630,"name":"Kuba","username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","created_at":"2013-03-27T10:33:06.519Z","cooked":"<p>I am the author of the Czech translation. I send translation updates every few days and it's always just a few minutes of work. Other translators work the same way. It's quite easy for the translations to stay up to date.</p>","post_number":86,"post_type":1,"updated_at":"2013-03-27T10:37:50.955Z","reply_count":0,"reply_to_post_number":85,"quote_count":0,"avg_time":10,"incoming_link_count":0,"reads":122,"score":54.9,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Kuba","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"read":true,"user_title":"Great contributor","reply_to_user":{"username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png"},"actions_summary":[{"id":2,"count":2}],"moderator":false,"admin":false,"staff":false,"user_id":461,"hidden":false,"hidden_reason_id":null,"trust_level":2,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false},{"id":12918,"name":"Martin Potthast","username":"potthast","avatar_template":"/user_avatar/localhost/potthast/{size}/11363_1.png","created_at":"2013-03-30T00:04:06.280Z","cooked":"<p>Another addition to the list:</p>\n\n<ul><li>\n<a href=\"http://en.wikipedia.org/wiki/T%E2%80%93V_distinction\" rel=\"nofollow\">T–V distinction</a> and what is the preferred way.</li></ul>\n\n<p>In German, French, and many other languages, speakers distinguish whether they know someone personally, or no. Currently, in the German l10n, users are addressed with \"Du\", as if being on a first name basis (which is also the default for English, right?), whereas the French l10n addresses users with \"Vous\", which is more formal.</p>\n\n<p>Should this be different from l10n to l10n, or should there be a policy of always preferring one over the other?</p>\n\n<p>Martin</p>","post_number":87,"post_type":1,"updated_at":"2013-03-30T00:04:06.280Z","reply_count":1,"reply_to_post_number":73,"quote_count":0,"avg_time":12,"incoming_link_count":0,"reads":117,"score":59.0,"yours":false,"topic_id":280,"topic_slug":"internationalization-localization","display_username":"Martin Potthast","primary_group_name":null,"primary_group_flair_url":null,"primary_group_flair_bg_color":null,"primary_group_flair_color":null,"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_wiki":false,"link_counts":[{"url":"http://en.wikipedia.org/wiki/T%E2%80%93V_distinction","internal":false,"reflection":false,"title":"T–V distinction - Wikipedia, the free encyclopedia","clicks":3}],"read":true,"user_title":null,"reply_to_user":{"username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png"},"actions_summary":[{"id":2,"count":2}],"moderator":false,"admin":false,"staff":false,"user_id":3620,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false}],"stream":[398,419,1060,3623,3651,3654,3655,3658,3660,3667,3673,3675,3690,3925,3938,3982,3989,3996,4009,4012,4025,4056,4058,4093,4129,6288,6302,6683,6687,7059,7078,7197,7445,7448,7524,7528,7784,8379,8426,8427,8569,8570,8577,8861,8992,8999,9000,9002,9015,9048,9052,9104,9408,9435,9625,9631,9655,9896,10386,10400,10547,10671,10700,10710,10714,10753,10786,10846,10893,10994,11001,11107,11221,11225,11229,11251,11660,12453,12454,12462,12624,12625,12627,12628,12629,12630,12918,13501,13507,17251,17252,17977,20706,21397,25473,30505,30512,41803,41843,43531,43537,103215]},"timeline_lookup":[[1,1441],[4,1439],[26,1433],[28,1432],[30,1431],[33,1430],[35,1429],[37,1428],[38,1425],[41,1424],[44,1423],[52,1422],[53,1420],[55,1419],[57,1418],[58,1417],[59,1413],[61,1412],[62,1411],[63,1410],[67,1409],[68,1408],[69,1407],[72,1406],[73,1405],[77,1400],[78,1393],[81,1391],[87,1389],[88,1384],[90,1343],[92,1334],[93,1308],[94,1301],[95,1257],[96,1191],[98,1058],[99,1057],[100,1048],[102,684]],"id":280,"title":"Internationalization / localization","fancy_title":"Internationalization / localization","posts_count":102,"created_at":"2013-02-05T21:29:00.174Z","views":8241,"reply_count":67,"participant_count":39,"like_count":144,"last_posted_at":"2015-03-04T15:07:10.487Z","visible":true,"closed":false,"archived":false,"has_summary":true,"archetype":"regular","slug":"internationalization-localization","category_id":2,"word_count":6198,"deleted_at":null,"user_id":255,"draft":null,"draft_key":"topic_280","draft_sequence":null,"unpinned":null,"pinned_globally":false,"pinned":false,"pinned_at":null,"pinned_until":null,"details":{"auto_close_at":null,"auto_close_hours":null,"auto_close_based_on_last_post":false,"created_by":{"id":255,"username":"uwe_keim","avatar_template":"/user_avatar/localhost/uwe_keim/{size}/5697_1.png"},"last_poster":{"id":14091,"username":"Luciano_Fantuzzi","avatar_template":"/user_avatar/localhost/luciano_fantuzzi/{size}/39484_1.png"},"participants":[{"id":212,"username":"alxndr","avatar_template":"/user_avatar/localhost/alxndr/{size}/5619_1.png","post_count":11},{"id":1,"username":"sam","avatar_template":"/user_avatar/localhost/sam/{size}/5243_1.png","post_count":11},{"id":7,"username":"pekka","avatar_template":"/user_avatar/localhost/pekka/{size}/5253_1.png","post_count":8},{"id":461,"username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","post_count":7},{"id":2995,"username":"tattoo","avatar_template":"https://avatars.discourse.org/v2/letter/t/9de0a6/{size}.png","post_count":6},{"id":2540,"username":"jgourdon","avatar_template":"/user_avatar/localhost/jgourdon/{size}/9537_1.png","post_count":5},{"id":19,"username":"eviltrout","avatar_template":"/user_avatar/localhost/eviltrout/{size}/5275_1.png","post_count":4},{"id":1275,"username":"dacap","avatar_template":"/user_avatar/localhost/dacap/{size}/7401_1.png","post_count":4},{"id":1860,"username":"emk","avatar_template":"/user_avatar/localhost/emk/{size}/8400_1.png","post_count":4},{"id":3704,"username":"mojzis","avatar_template":"/user_avatar/localhost/mojzis/{size}/31201_1.png","post_count":3},{"id":1895,"username":"maciek","avatar_template":"/user_avatar/localhost/maciek/{size}/8463_1.png","post_count":3},{"id":3190,"username":"gururea","avatar_template":"/user_avatar/localhost/gururea/{size}/10663_1.png","post_count":3},{"id":3620,"username":"potthast","avatar_template":"/user_avatar/localhost/potthast/{size}/11363_1.png","post_count":2},{"id":9,"username":"tms","avatar_template":"/user_avatar/localhost/tms/{size}/40181_1.png","post_count":2},{"id":3818,"username":"Tudor","avatar_template":"/user_avatar/localhost/tudor/{size}/11675_1.png","post_count":2},{"id":22,"username":"splattne","avatar_template":"/user_avatar/localhost/splattne/{size}/5280_1.png","post_count":2},{"id":1979,"username":"Superuser","avatar_template":"/user_avatar/localhost/superuser/{size}/8604_1.png","post_count":2},{"id":32,"username":"codinghorror","avatar_template":"/user_avatar/localhost/codinghorror/{size}/5297_1.png","post_count":2},{"id":14091,"username":"Luciano_Fantuzzi","avatar_template":"/user_avatar/localhost/luciano_fantuzzi/{size}/39484_1.png","post_count":1},{"id":255,"username":"uwe_keim","avatar_template":"/user_avatar/localhost/uwe_keim/{size}/5697_1.png","post_count":1},{"id":761,"username":"marcoceppi","avatar_template":"/user_avatar/localhost/marcoceppi/{size}/6552_1.png","post_count":1},{"id":2,"username":"neil","avatar_template":"/user_avatar/localhost/neil/{size}/5245_1.png","post_count":1},{"id":2753,"username":"mikl","avatar_template":"/user_avatar/localhost/mikl/{size}/9918_1.png","post_count":1},{"id":5052,"username":"vulkanino","avatar_template":"/user_avatar/localhost/vulkanino/{size}/13713_1.png","post_count":1}],"suggested_topics":[{"id":50847,"title":"Suppress tags in filter list","fancy_title":"Suppress tags in filter list","slug":"suppress-tags-in-filter-list","posts_count":1,"reply_count":0,"highest_post_number":1,"image_url":null,"created_at":"2016-09-29T07:35:34.741Z","last_posted_at":"2016-09-29T07:35:34.812Z","bumped":true,"bumped_at":"2016-09-29T07:35:34.812Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":2,"views":108,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":"latest single","description":"Original Poster, Most Recent Poster","user":{"id":17969,"username":"Pad_Pors","avatar_template":"/user_avatar/localhost/pad_pors/{size}/52016_1.png"}}]},{"id":38308,"title":"Most liked messages in the topic","fancy_title":"Most liked messages in the topic","slug":"most-liked-messages-in-the-topic","posts_count":6,"reply_count":2,"highest_post_number":6,"image_url":null,"created_at":"2016-01-21T17:56:44.335Z","last_posted_at":"2016-01-25T14:50:00.340Z","bumped":true,"bumped_at":"2016-01-25T14:50:00.340Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":0,"views":597,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":"latest","description":"Original Poster, Most Recent Poster","user":{"id":18884,"username":"Konstantin_Ladutenko","avatar_template":"/user_avatar/localhost/konstantin_ladutenko/{size}/50096_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":32,"username":"codinghorror","avatar_template":"/user_avatar/localhost/codinghorror/{size}/5297_1.png"}}]},{"id":48702,"title":"Categories view does not keep vertical scroll position","fancy_title":"Categories view does not keep vertical scroll position","slug":"categories-view-does-not-keep-vertical-scroll-position","posts_count":6,"reply_count":4,"highest_post_number":6,"image_url":null,"created_at":"2016-08-16T16:20:20.996Z","last_posted_at":"2016-08-17T10:23:44.487Z","bumped":true,"bumped_at":"2016-08-17T10:23:44.487Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":0,"views":252,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":null,"description":"Original Poster","user":{"id":10344,"username":"ljpp","avatar_template":"https://avatars.discourse.org/v2/letter/l/3bc359/{size}.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":6626,"username":"riking","avatar_template":"/user_avatar/localhost/riking/{size}/47647_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":32,"username":"codinghorror","avatar_template":"/user_avatar/localhost/codinghorror/{size}/5297_1.png"}},{"extras":"latest","description":"Most Recent Poster","user":{"id":8300,"username":"cpradio","avatar_template":"/user_avatar/localhost/cpradio/{size}/4970_1.png"}}]},{"id":54150,"title":"Can I set the \"Search current category\" checkbox to checked by default?","fancy_title":"Can I set the &ldquo;Search current category&rdquo; checkbox to checked by default?","slug":"can-i-set-the-search-current-category-checkbox-to-checked-by-default","posts_count":2,"reply_count":0,"highest_post_number":2,"image_url":null,"created_at":"2016-12-12T23:55:31.633Z","last_posted_at":"2016-12-14T12:55:53.057Z","bumped":true,"bumped_at":"2016-12-14T12:55:53.057Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":5,"views":144,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":null,"description":"Original Poster","user":{"id":25598,"username":"gpickett00","avatar_template":"/user_avatar/localhost/gpickett00/{size}/65167_1.png"}},{"extras":"latest","description":"Most Recent Poster","user":{"id":5351,"username":"erlend_sh","avatar_template":"/user_avatar/localhost/erlend_sh/{size}/43866_1.png"}}]},{"id":54873,"title":"Make launcher forgive swapped parameters","fancy_title":"Make launcher forgive swapped parameters","slug":"make-launcher-forgive-swapped-parameters","posts_count":10,"reply_count":6,"highest_post_number":10,"image_url":null,"created_at":"2016-12-28T12:11:02.080Z","last_posted_at":"2016-12-30T17:36:03.526Z","bumped":true,"bumped_at":"2016-12-30T17:36:03.526Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":19,"views":178,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":null,"description":"Original Poster","user":{"id":21707,"username":"claas","avatar_template":"/user_avatar/localhost/claas/{size}/65953_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":32,"username":"codinghorror","avatar_template":"/user_avatar/localhost/codinghorror/{size}/5297_1.png"}},{"extras":"latest","description":"Most Recent Poster","user":{"id":8617,"username":"Mittineague","avatar_template":"/user_avatar/localhost/mittineague/{size}/40997_1.png"}}]},{"id":50409,"title":"User stats under avatar","fancy_title":"User stats under avatar","slug":"user-stats-under-avatar","posts_count":2,"reply_count":0,"highest_post_number":2,"image_url":null,"created_at":"2016-09-20T19:43:37.710Z","last_posted_at":"2016-09-20T19:51:01.597Z","bumped":true,"bumped_at":"2016-09-20T19:51:01.597Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":6,"views":165,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":null,"description":"Original Poster","user":{"id":23918,"username":"shaz","avatar_template":"https://avatars.discourse.org/v2/letter/s/ba9def/{size}.png"}},{"extras":"latest","description":"Most Recent Poster","user":{"id":8722,"username":"Falco","avatar_template":"/user_avatar/localhost/falco/{size}/18952_1.png"}}]},{"id":39097,"title":"Highlight parts of a post that have been quoted in a reply","fancy_title":"Highlight parts of a post that have been quoted in a reply","slug":"highlight-parts-of-a-post-that-have-been-quoted-in-a-reply","posts_count":25,"reply_count":17,"highest_post_number":25,"image_url":null,"created_at":"2016-02-05T11:21:08.487Z","last_posted_at":"2016-12-26T11:05:49.275Z","bumped":true,"bumped_at":"2016-12-26T11:05:49.275Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"archetype":"regular","like_count":41,"views":1426,"category_id":2,"tags":[],"featured_link":null,"posters":[{"extras":null,"description":"Original Poster","user":{"id":19236,"username":"Crissov","avatar_template":"/user_avatar/localhost/crissov/{size}/50643_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":8722,"username":"Falco","avatar_template":"/user_avatar/localhost/falco/{size}/18952_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":15604,"username":"geoff777","avatar_template":"/user_avatar/localhost/geoff777/{size}/43039_1.png"}},{"extras":null,"description":"Frequent Poster","user":{"id":32,"username":"codinghorror","avatar_template":"/user_avatar/localhost/codinghorror/{size}/5297_1.png"}},{"extras":"latest","description":"Most Recent Poster","user":{"id":12852,"username":"terraboss","avatar_template":"/user_avatar/localhost/terraboss/{size}/45937_1.png"}}]}],"links":[{"url":"https://github.com/discourse/discourse/blob/master/config/locales/en.yml","title":null,"fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":140,"user_id":9,"domain":"github.com"},{"url":"https://github.com/discourse/discourse/blob/master/config/locales","title":"discourse/config/locales at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":97,"user_id":32,"domain":"github.com"},{"url":"http://www.localeapp.com/","title":"Easy localization for Rails apps | Locale","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":81,"user_id":1860,"domain":"www.localeapp.com"},{"url":"http://stackoverflow.com/questions/4232922/why-do-people-use-plain-english-as-translation-placeholders","title":"internationalization - Why do people use plain english as translation placeholders? - Stack Overflow","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":73,"user_id":7,"domain":"stackoverflow.com"},{"url":"https://github.com/SlexAxton/messageformat.js","title":"SlexAxton/messageformat.js · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":52,"user_id":1,"domain":"github.com"},{"url":"http://www.localeapp.com/projects/1537/translations?utf8=%E2%9C%93&search=source_code","title":"langforums | Locale","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":28,"user_id":1860,"domain":"www.localeapp.com"},{"url":"https://www.transifex.com/","title":"Transifex - Continuous Localization Platform","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":25,"user_id":1979,"domain":"www.transifex.com"},{"url":"https://github.com/berk/tr8n","title":"berk/tr8n · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":24,"user_id":1,"domain":"github.com"},{"url":"https://translations.launchpad.net/","title":"Launchpad Translations","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":23,"user_id":761,"domain":"translations.launchpad.net"},{"url":"http://translate.wordpress.org/projects/bbpress/dev","title":"WordPress › Development < GlotPress","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":19,"user_id":7,"domain":"translate.wordpress.org"},{"url":"http://weblate.org","title":"Weblate - web-based translation","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":17,"user_id":2316,"domain":"weblate.org"},{"url":"https://github.com/discourse/discourse/tree/master/config/locales","title":"discourse/config/locales at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":15,"user_id":19,"domain":"github.com"},{"url":"https://github.com/discourse/discourse/pull/493","title":"Danish translation. by mikl · Pull Request #493 · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":13,"user_id":2753,"domain":"github.com"},{"url":"http://www.getlocalization.com/","title":"Crowdsourced, Social and Collaborative App & Website Translation - Get Localization","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":10,"user_id":22,"domain":"www.getlocalization.com"},{"url":"https://github.com/SlexAxton","title":"SlexAxton (Alex Sexton) · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":10,"user_id":1,"domain":"github.com"},{"url":"https://github.com/discourse/discourse/blob/master/config/locales/client.en.yml#L691","title":"discourse/config/locales/client.en.yml at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":9,"user_id":461,"domain":"github.com"},{"url":"https://github.com/gururea/discourse/tree/master/config/locales","title":"discourse/config/locales at master · gururea/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":9,"user_id":3190,"domain":"github.com"},{"url":"https://github.com/dacap/discourse/tree/spanish","title":"dacap/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":8,"user_id":1275,"domain":"github.com"},{"url":"http://translate.sourceforge.net/wiki/virtaal/index","title":"Easy-to-use and powerful offline translation tool | Virtaal","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":7,"user_id":1979,"domain":"translate.sourceforge.net"},{"url":"https://github.com/discourse/discourse/blob/master/config/locales/client.nl.yml","title":"discourse/config/locales/client.nl.yml at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":7,"user_id":461,"domain":"github.com"},{"url":"http://tr8n.github.com/","title":"tr8n","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":6,"user_id":212,"domain":"tr8n.github.com"},{"url":"https://github.com/discourse/discourse/commit/c5761eae8afe37e20cec0d0f9d14b85b6e585bda","title":"Support for Simplified Chinese thanks to tangramor · c5761ea · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":6,"user_id":212,"domain":"github.com"},{"url":"http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/","title":"Discourse as Your First Rails App","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":5,"user_id":1995,"domain":"blog.discourse.org"},{"url":"https://github.com/alxndr/discourse/blob/i18n-chinese/config/locales/server.zh.yml","title":null,"fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":5,"user_id":212,"domain":"github.com"},{"url":"https://meta.discourse.org/t/translation-workflow/6102/6","title":"Translation workflow","fancy_title":null,"internal":true,"attachment":null,"reflection":false,"clicks":5,"user_id":1995,"domain":"meta.discourse.org"},{"url":"https://poeditor.com/","title":"POEditor - online software localization tool","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":5,"user_id":1979,"domain":"poeditor.com"},{"url":"http://www.madanalogy.com/2012/06/rails-i18n-translations-in-yaml.html","title":"Mad Analogy: Rails i18n translations in Yaml: translation tool support","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":4,"user_id":3190,"domain":"www.madanalogy.com"},{"url":"http://www.slideshare.net/HeatherRivers/linguistic-potluck-crowdsourcing-localization-with-rails","title":"Linguistic Potluck: Crowdsourcing localization with Rails","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":3,"user_id":212,"domain":"www.slideshare.net"},{"url":"http://en.lichess.org/@/Hellball","title":null,"fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":3,"user_id":1979,"domain":"en.lichess.org"},{"url":"http://en.wikipedia.org/wiki/T%E2%80%93V_distinction","title":"T–V distinction - Wikipedia, the free encyclopedia","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":3,"user_id":3620,"domain":"en.wikipedia.org"},{"url":"http://pootle.locamotion.org/","title":"Main | Pootle Demo","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":3,"user_id":3190,"domain":"pootle.locamotion.org"},{"url":"http://blog.discourse.org/2013/03/localizing-discourse/","title":"Localizing Discourse","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":2,"user_id":893,"domain":"blog.discourse.org"},{"url":"http://www.youtube.com/watch?v=MqqdzJ98q7s","title":"GoGaRuCo 2012 - Linguistic Potluck: Crowdsourcing Localization in Rails by Heather Rivers - YouTube","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":2,"user_id":212,"domain":"www.youtube.com"},{"url":"https://github.com/discourse/discourse/issues/279","title":null,"fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":1,"user_id":893,"domain":"github.com"},{"url":"https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/date_locales.js","title":null,"fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":1,"user_id":461,"domain":"github.com"},{"url":"http://transifex.com/projects/p/discourse-pt-br/","title":"Discourse-Translations-Project localization","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":1,"user_id":893,"domain":"transifex.com"},{"url":"http://sugarjs.com/dates#date_locales","title":"Dates - Sugar","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":1,"user_id":461,"domain":"sugarjs.com"},{"url":"http://guides.rubyonrails.org/i18n.html#the-public-i18n-api","title":"Rails Internationalization (I18n) API — Ruby on Rails Guides","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":0,"user_id":1895,"domain":"guides.rubyonrails.org"},{"url":"https://meta.discourse.org/t/translation-tools-transifex-localeapp/7763/41","title":"Translation Tools: Transifex? Localeapp?","fancy_title":null,"internal":true,"attachment":null,"reflection":false,"clicks":0,"user_id":6626,"domain":"meta.discourse.org"},{"url":"https://meta.discourse.org/t/translation-tools-transifex-localeapp/7763","title":"Translation Tools: Transifex? Localeapp?","fancy_title":null,"internal":true,"attachment":null,"reflection":true,"clicks":0,"user_id":2,"domain":"meta.discourse.org"},{"url":"https://github.com/discourse/discourse/blob/master/config/locales/server.de.yml","title":"discourse/config/locales/server.de.yml at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":0,"user_id":2,"domain":"github.com"},{"url":"https://meta.discourse.org/t/what-i-love-about-wordpress-plugins/5697","title":"What I love about WordPress plugins","fancy_title":null,"internal":true,"attachment":null,"reflection":true,"clicks":0,"user_id":1,"domain":"meta.discourse.org"},{"url":"https://github.com/discourse/discourse/blob/master/config/locales/client.de.yml","title":"discourse/config/locales/client.de.yml at master · discourse/discourse · GitHub","fancy_title":null,"internal":false,"attachment":null,"reflection":false,"clicks":0,"user_id":2,"domain":"github.com"}],"notification_level":1,"can_flag_topic":false},"highest_post_number":104,"deleted_by":null,"actions_summary":[{"id":4,"count":0,"hidden":false,"can_act":false},{"id":7,"count":0,"hidden":false,"can_act":false},{"id":8,"count":0,"hidden":false,"can_act":false}],"chunk_size":20,"bookmarked":null,"tags":[],"featured_link":null}
]
});
server.get("search/query", () => {
return [
200,
{ "Content-Type": "application/json" },
{"posts":[{"id":11221,"name":"Kuba","username":"kuba","avatar_template":"/user_avatar/localhost/kuba/{size}/6049_1.png","created_at":"2013-03-13T19:29:28.974Z","cooked":"<p>I would like to say a few things about the current state of l10n and i18n. Here's what we have now:</p>\n\n<ul>\n<li>contributed translations: German, French, Czech, Dutch, Indonesian, Portugese, Swedish and Chinese. Some of them are complete and up-to-date, some are worse. E.g. the <a href=\"https://github.com/discourse/discourse/blob/master/config/locales/client.nl.yml\" rel=\"nofollow\">Dutch client-side translation</a> seems to be somehow completely broken.</li>\n<li>locale switching in the site settings</li>\n<li>(hopefully) working international date formats, including things like \"10 minutes ago\", \"just now\", etc. The formats are taken from <a href=\"http://sugarjs.com/dates#date_locales\" rel=\"nofollow\">Sugar's Date i18n support</a> on the JavaScript side, and some formats are also specified in the locale files for the server side. Sugar does not support Czech language, but it was <a href=\"https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/date_locales.js\" rel=\"nofollow\">easy to implement it</a>.</li>\n</ul>\n\n<p>Surprisingly, this alone makes Discourse very usable in other locales. It's not 100% perfect, but unless you start closely examining, you probably won't notice any issues. There are still a few things to do, such as:</p>\n\n<ul>\n<li>concatenated sentences, such as \"2 people liked this\": This is actually three individual pieces simply concatenated together, which works in English, but almost nowhere else.</li>\n<li>gender: \"you liked this\" translates differently (in Czech) when \"you\" are male and when \"you\" are female</li>\n</ul>\n\n<p>And much more, but these are the most obvious now. I am not sure if Discourse plans to include genders for users. Anyway, I will be working on finding and fixing wrongly concatenated strings, and there are quite a lot of them.</p>","like_count":4,"blurb":"I would like to say a few things about the current state of l10n and i18n. Here's what we have now: c...","post_number":73,"topic_id":280}],"topics":[{"id":280,"title":"Internationalization / localization","fancy_title":"Internationalization / localization","slug":"internationalization-localization","posts_count":102,"reply_count":67,"highest_post_number":104,"image_url":null,"created_at":"2013-02-05T21:29:00.174Z","last_posted_at":"2015-03-04T15:07:10.487Z","bumped":true,"bumped_at":"2015-03-04T15:07:10.487Z","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"views":8241,"like_count":144,"has_summary":true,"archetype":"regular","last_poster_username":null,"category_id":2,"pinned_globally":false,"tags":[],"featured_link":null,"posters":[]}],"users":[],"categories":[],"grouped_search_result":{"more_posts":null,"more_users":null,"more_categories":null,"post_ids":[11221],"user_ids":[],"category_ids":[]}} ]
});
visit("/t/internationalization-localization/280/1");
click('#search-button');
fillIn('#search-term', 'test');
click(".search-context input[type='checkbox']");
keyEvent('#search-term', 'keyup', 16);
andThen(() => {
assert.ok(exists('.search-menu .results ul li'), 'it shows results');
});
click('.search-menu .results ul li .search-link');
andThen(() => {
return pauseTest();
assert.ok(exists('.search-menu .results ul li'), 'results remain visible');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment