diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/environment.rb | 7 | ||||
-rw-r--r-- | config/i18n-routes.yml | 8 | ||||
-rw-r--r-- | config/routes.rb | 6 | ||||
-rw-r--r-- | config/routes_en.yml | 86 | ||||
-rw-r--r-- | config/routes_es.yml | 86 | ||||
-rw-r--r-- | config/routes_sq.yml | 86 | ||||
-rw-r--r-- | config/routes_sr.yml | 86 |
7 files changed, 356 insertions, 9 deletions
diff --git a/config/environment.rb b/config/environment.rb index 28598a9ef..f268233c6 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -116,19 +116,18 @@ if (MySociety::Config.get("DOMAIN", "") != "") end # fallback locale and available locales -I18n.default_locale = :en +I18n.default_locale = :sq if ENV["RAILS_ENV"] == "test" # The tests assume that the "en" and "es" locales are available FastGettext.default_available_locales = ["en", "es"] else - available_locales = MySociety::Config.get('AVAILABLE_LOCALES', 'en') - FastGettext.default_available_locales = available_locales.split() + available_locales = MySociety::Config.get('AVAILABLE_LOCALES', 'sq en sr') + FastGettext.default_available_locales = available_locales.split(/ /) end # Load monkey patches and other things from lib/ require 'tmail_extensions.rb' require 'activesupport_cache_extensions.rb' -require 'public_body_categories.rb' require 'timezone_fixes.rb' require 'use_spans_for_errors.rb' require 'make_html_4_compliant.rb' diff --git a/config/i18n-routes.yml b/config/i18n-routes.yml index 1f9b3028c..b9c9e5328 100644 --- a/config/i18n-routes.yml +++ b/config/i18n-routes.yml @@ -1,6 +1,6 @@ en: # default from routes.rb -es: - search: busquedas - help: ayuda - about: sobre +sq: + # let routes be in english all +sr: + # let routes be in english all diff --git a/config/routes.rb b/config/routes.rb index 1292e05fc..60a49a6e0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,7 +17,7 @@ ActionController::Routing::Routes.draw do |map| map.with_options :controller => 'general' do |general| general.frontpage '/', :action => 'frontpage' general.blog '/blog', :action => 'blog' - general.custom_css '/stylesheets/custom.css', :action => 'custom_css' + general.custom_css '/stylesheets/custom.css', :action => 'custom_css' general.search_redirect '/search', :action => 'search_redirect' # XXX combined is the search query, and then if sorted a "/newest" at the end. # Couldn't find a way to do this in routes which also picked up multiple other slashes @@ -111,7 +111,11 @@ ActionController::Routing::Routes.draw do |map| help.help_unhappy '/help/unhappy/:url_title', :action => 'unhappy' help.help_about '/help/about', :action => 'about' help.help_contact '/help/contact', :action => 'contact' + help.help_officers '/help/officers', :action => 'officers' help.help_requesting '/help/requesting', :action => 'requesting' + help.help_privacy '/help/privacy', :action => 'privacy' + help.help_api '/help/api', :action => 'api' + help.help_credits '/help/credits', :action => 'credits' help.help_general '/help/:action', :action => :action end diff --git a/config/routes_en.yml b/config/routes_en.yml new file mode 100644 index 000000000..5684f5cab --- /dev/null +++ b/config/routes_en.yml @@ -0,0 +1,86 @@ +en: + about: + admin: + all-authorities: + annotate: + api: + attach: + banned: + blog: + body: + c: + categorise: + censor: + change_email: + change_password: + clarification: + clear_photo: + clear_profile_photo: + contact: + create: + css: + csv: + custom: + debug: + delete_all_type: + describe: + destroy: + destroy_incoming: + destroy_outgoing: + destroy_track: + details: + download_raw_email: + draft_photo: + due_date: + edit: + edit_comment: + edit_outgoing: + feed: + generate_upload_url: + help: + html: + import_csv: + list: + local: + login_as: + missing_scheme: + move_request: + new: + officers: + photo: + play: + png: + privacy: + profile: + random: + recent: + redeliver_incoming: + request: + request_event: + requesting: + resend: + response: + river: + search: + set_about_me: + set_photo: + show: + show_raw_email: + sign_in: + sign_out: + sign_up: + similar: + stats: + stop: + successful: + test: + timeline: + track: + unclassified: + unhappy: + update: + update_comment: + update_outgoing: + upload: + user: + view_email: diff --git a/config/routes_es.yml b/config/routes_es.yml new file mode 100644 index 000000000..d4d4f03da --- /dev/null +++ b/config/routes_es.yml @@ -0,0 +1,86 @@ +es: + about: + admin: + all-authorities: + annotate: + api: + attach: + banned: + blog: + body: + c: + categorise: + censor: + change_email: + change_password: + clarification: + clear_photo: + clear_profile_photo: + contact: + create: + css: + csv: + custom: + debug: + delete_all_type: + describe: + destroy: + destroy_incoming: + destroy_outgoing: + destroy_track: + details: + download_raw_email: + draft_photo: + due_date: + edit: + edit_comment: + edit_outgoing: + feed: + generate_upload_url: + help: + html: + import_csv: + list: + local: + login_as: + missing_scheme: + move_request: + new: + officers: + photo: + play: + png: + privacy: + profile: + random: + recent: + redeliver_incoming: + request: + request_event: + requesting: + resend: + response: + river: + search: + set_about_me: + set_photo: + show: + show_raw_email: + sign_in: + sign_out: + sign_up: + similar: + stats: + stop: + successful: + test: + timeline: + track: + unclassified: + unhappy: + update: + update_comment: + update_outgoing: + upload: + user: + view_email: diff --git a/config/routes_sq.yml b/config/routes_sq.yml new file mode 100644 index 000000000..a03660d16 --- /dev/null +++ b/config/routes_sq.yml @@ -0,0 +1,86 @@ +sq: + about: + admin: + all-authorities: + annotate: + api: + attach: + banned: + blog: + body: + c: + categorise: + censor: + change_email: + change_password: + clarification: + clear_photo: + clear_profile_photo: + contact: + create: + css: + csv: + custom: + debug: + delete_all_type: + describe: + destroy: + destroy_incoming: + destroy_outgoing: + destroy_track: + details: + download_raw_email: + draft_photo: + due_date: + edit: + edit_comment: + edit_outgoing: + feed: + generate_upload_url: + help: + html: + import_csv: + list: + local: + login_as: + missing_scheme: + move_request: + new: + officers: + photo: + play: + png: + privacy: + profile: + random: + recent: + redeliver_incoming: + request: + request_event: + requesting: + resend: + response: + river: + search: + set_about_me: + set_photo: + show: + show_raw_email: + sign_in: + sign_out: + sign_up: + similar: + stats: + stop: + successful: + test: + timeline: + track: + unclassified: + unhappy: + update: + update_comment: + update_outgoing: + upload: + user: + view_email: diff --git a/config/routes_sr.yml b/config/routes_sr.yml new file mode 100644 index 000000000..c2de50ef9 --- /dev/null +++ b/config/routes_sr.yml @@ -0,0 +1,86 @@ +sr: + about: + admin: + all-authorities: + annotate: + api: + attach: + banned: + blog: + body: + c: + categorise: + censor: + change_email: + change_password: + clarification: + clear_photo: + clear_profile_photo: + contact: + create: + css: + csv: + custom: + debug: + delete_all_type: + describe: + destroy: + destroy_incoming: + destroy_outgoing: + destroy_track: + details: + download_raw_email: + draft_photo: + due_date: + edit: + edit_comment: + edit_outgoing: + feed: + generate_upload_url: + help: + html: + import_csv: + list: + local: + login_as: + missing_scheme: + move_request: + new: + officers: + photo: + play: + png: + privacy: + profile: + random: + recent: + redeliver_incoming: + request: + request_event: + requesting: + resend: + response: + river: + search: + set_about_me: + set_photo: + show: + show_raw_email: + sign_in: + sign_out: + sign_up: + similar: + stats: + stop: + successful: + test: + timeline: + track: + unclassified: + unhappy: + update: + update_comment: + update_outgoing: + upload: + user: + view_email: |