{"action":"created","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/9","labels_url":"https://api.github.com/repos/formvalidation/support/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/9/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/9/events","html_url":"https://github.com/formvalidation/support/issues/9","id":56160399,"number":9,"title":"Problem with reading default messages from correct localization file","user":{"login":"nghuuphuoc","id":4226036,"avatar_url":"https://avatars.githubusercontent.com/u/4226036?v=3","gravatar_id":"","url":"https://api.github.com/users/nghuuphuoc","html_url":"https://github.com/nghuuphuoc","followers_url":"https://api.github.com/users/nghuuphuoc/followers","following_url":"https://api.github.com/users/nghuuphuoc/following{/other_user}","gists_url":"https://api.github.com/users/nghuuphuoc/gists{/gist_id}","starred_url":"https://api.github.com/users/nghuuphuoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghuuphuoc/subscriptions","organizations_url":"https://api.github.com/users/nghuuphuoc/orgs","repos_url":"https://api.github.com/users/nghuuphuoc/repos","events_url":"https://api.github.com/users/nghuuphuoc/events{/privacy}","received_events_url":"https://api.github.com/users/nghuuphuoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-01T11:16:35Z","updated_at":"2015-02-01T11:18:36Z","closed_at":null,"body":"_From @budik21 on February 1, 2015 11:6_\n\nAfter implementing 0.6.1 I have problem with reading default messages\r\n\r\nBase on preferred language I set correct localization file on application start\r\n\r\n    <?php    \t\r\n    \tswitch (strtolower($_SESSION['LANG'])) {\r\n     \t\tcase 'cs':\r\n     \t\t\techo \"<script type='text/javascript' src='js/language/cs_CZ.js'></script>\";\r\n     \t   \t\tbreak;\r\n     \t\tcase 'sk':\r\n     \t\t\techo \"<script type='text/javascript' src='js/language/sk_SK.js'></script>\";\r\n                        break;\r\n    \t}\r\n    ?>\r\n\r\nThe result is, that in case of Czech language I have in rendered HTML page this line:\r\n\r\n    <script type='text/javascript' src='js/language/cs_CZ.js'>\r\n\r\n...and the link is correct and leads to formvalidation localization resource.\r\n\r\nNext I  have following piece of code\r\n\r\n    <input type=\"text\"\r\n          class=\"form-control\"\r\n          name=\"polluxusername\"\r\n          id=\"polluxUsername\"\r\n          placeholder=\"<?php echo $localization->getLocalizationByCode('20'); ?>\"\r\n                                 \r\n          data-fv-notempty=\"true\"\r\n          data-fv-notempty-message=\"<?php echo $localization->getLocalizationByCode('11');?>\"\r\n                                 \r\n          data-fv-stringlength=\"true\"\r\n \t  data-fv-stringlength-min=\"6\"\r\n\t  data-fv-stringlength-max=\"20\"\r\n\t\t\t\t\t \t\t\t \r\n  \t  data-fv-regexp=\"true\"\r\n\t  data-fv-regexp-regexp=\"^[a-zA-Z0-9_-]*$\"\r\n\t  data-fv-regexp-message=\"<?php echo $localization->getLocalizationByCode('161');?>\"\r\n    >\r\n\r\nSo, it means, that in two cases I  set message programaticalyy, but in case of wrong string length I would like to use default formvaliatin message. **But the message is displayed in English, not in Czech language, although I have set correct localization package.**\r\n\r\nWhat I am doing wrong?\n\n_Copied from original issue: formvalidation/formvalidation#1404_"},"comment":{"url":"https://api.github.com/repos/formvalidation/support/issues/comments/72360804","html_url":"https://github.com/formvalidation/support/issues/9#issuecomment-72360804","issue_url":"https://api.github.com/repos/formvalidation/support/issues/9","id":72360804,"user":{"login":"nghuuphuoc","id":4226036,"avatar_url":"https://avatars.githubusercontent.com/u/4226036?v=3","gravatar_id":"","url":"https://api.github.com/users/nghuuphuoc","html_url":"https://github.com/nghuuphuoc","followers_url":"https://api.github.com/users/nghuuphuoc/followers","following_url":"https://api.github.com/users/nghuuphuoc/following{/other_user}","gists_url":"https://api.github.com/users/nghuuphuoc/gists{/gist_id}","starred_url":"https://api.github.com/users/nghuuphuoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghuuphuoc/subscriptions","organizations_url":"https://api.github.com/users/nghuuphuoc/orgs","repos_url":"https://api.github.com/users/nghuuphuoc/repos","events_url":"https://api.github.com/users/nghuuphuoc/events{/privacy}","received_events_url":"https://api.github.com/users/nghuuphuoc/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T11:18:36Z","updated_at":"2015-02-01T11:18:36Z","body":"@budik21\r\nDo you set the ```locale``` option?\r\nSee the [Using language package](http://formvalidation.io/examples/using-language-package/) example.\r\n"}}