{"action":"opened","issue":{"url":"https://api.github.com/repos/nedhyett/Vermilion/issues/89","labels_url":"https://api.github.com/repos/nedhyett/Vermilion/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/nedhyett/Vermilion/issues/89/comments","events_url":"https://api.github.com/repos/nedhyett/Vermilion/issues/89/events","html_url":"https://github.com/nedhyett/Vermilion/issues/89","id":65716028,"number":89,"title":"English localisation should be inline to make code readable.","user":{"login":"nedhyett","id":1623084,"avatar_url":"https://avatars.githubusercontent.com/u/1623084?v=3","gravatar_id":"","url":"https://api.github.com/users/nedhyett","html_url":"https://github.com/nedhyett","followers_url":"https://api.github.com/users/nedhyett/followers","following_url":"https://api.github.com/users/nedhyett/following{/other_user}","gists_url":"https://api.github.com/users/nedhyett/gists{/gist_id}","starred_url":"https://api.github.com/users/nedhyett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedhyett/subscriptions","organizations_url":"https://api.github.com/users/nedhyett/orgs","repos_url":"https://api.github.com/users/nedhyett/repos","events_url":"https://api.github.com/users/nedhyett/events{/privacy}","received_events_url":"https://api.github.com/users/nedhyett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nedhyett/Vermilion/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/nedhyett/Vermilion/labels/unsure","name":"unsure","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nedhyett/Vermilion/milestones/2","html_url":"https://github.com/nedhyett/Vermilion/milestones/2.6","labels_url":"https://api.github.com/repos/nedhyett/Vermilion/milestones/2/labels","id":1048619,"number":2,"title":"2.6","description":"","creator":{"login":"nedhyett","id":1623084,"avatar_url":"https://avatars.githubusercontent.com/u/1623084?v=3","gravatar_id":"","url":"https://api.github.com/users/nedhyett","html_url":"https://github.com/nedhyett","followers_url":"https://api.github.com/users/nedhyett/followers","following_url":"https://api.github.com/users/nedhyett/following{/other_user}","gists_url":"https://api.github.com/users/nedhyett/gists{/gist_id}","starred_url":"https://api.github.com/users/nedhyett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedhyett/subscriptions","organizations_url":"https://api.github.com/users/nedhyett/orgs","repos_url":"https://api.github.com/users/nedhyett/repos","events_url":"https://api.github.com/users/nedhyett/events{/privacy}","received_events_url":"https://api.github.com/users/nedhyett/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-04-01T12:50:38Z","updated_at":"2015-04-01T15:48:37Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-04-01T15:48:37Z","updated_at":"2015-04-01T15:48:37Z","closed_at":null,"body":"I dislike the current way that localisation is performed. Currently, any failed localisations in other languages default to the English localisation file. If the English localisation file cannot resolve the query, it returns the query string. The process looks like this:\r\n\r\nUntil it passes into the Vermilion core, the module sections are optional\r\nQuery String = \"test\"\r\n(MODULE) TranslateStr(\"test\") => (Query String Becomes \"MODULEID:test\") => Vermilion:TranslateStr(\"MODULEID:test\") => Current language is asked for \"MODULEID:test\" => if the current language cannot resolve it, it asks the English localisation => English is asked for \"MODULEID:test\" => if the English localisation cannot resolve it, it returns \"test\"\r\n\r\nI plan to rewrite the localisation system so that the English base file is removed and a translation request becomes TranslateStr(key, default) where default is the default english translation string."}}