local/tr8n_server/config/tr8n/config.yml in tr8n-3.1.8 vs local/tr8n_server/config/tr8n/config.yml in tr8n-3.2.0

- old
+ new

@@ -5,15 +5,21 @@ # # You can overload any feature for any environment by changing the # environment settings at the bottom of the file. # # Alternatively, you can overload any of the methods of Tr8n::Config +# +# If you would like to manage the configurations on the live site, +# try out the Registry gem, located here: +# +# http://www.github.com/berk/registry +# ############################################################################# -defaults: +defaults: enable_tr8n: true # enables the engine - enable_key_source_tracking: false # builds the site map sources + enable_key_source_tracking: false # builds the site map sources - must be enabled for the API enable_key_caller_tracking: false # tracks all calls to labels with their traces - for debugging only enable_glossary_hints: true # shows glossary in the translator enable_software_keyboard: true # shows the soft keyboard icon enable_keyboard_shortcuts: true # adds some keyboard shortcuts like ctrl+shift+s @@ -24,17 +30,20 @@ enable_language_flags: true # shows flag icons next to the languages enable_language_stats: true # shows percent completion of a language enable_admin_translations: true # registers tr8n admin keys in the system - enable_admin_inline_mode: false # allows tr8n engine sections to be inline translated + enable_admin_inline_mode: true # allows tr8n engine sections to be inline translated enable_language_cases: true # enables support for language cases - enable_client_sdk: false # allows javascript to use tr8nProxy object + enable_client_sdk: true # allows javascript to use tr8nProxy object + enable_browser_cache: true # caches translations in the browser enable_country_tracking: true # tracks and reports translator countries + enable_translator_tabs: true # enables translation tools tabs + ############################################################################# # Google translation suggestions is now a paid feature by Google. # # In order to enable this useful feauture, visit: # http://code.google.com/apis/language/translate/overview.html @@ -43,11 +52,11 @@ # # Put your API key in the box below. ############################################################################# enable_google_suggestions: false # uses google for suggestions google_api_key: "YOUR GOOGLE API KEY" # get this API key from Google. - + ############################################################################# # Featured languages can be added as a bottom strip bar on all pages using # # <%= tr8n_language_strip_tag %> # @@ -64,11 +73,13 @@ # user to become a translator. The users become translators as soon as they # enable inline translation mode, submit a translation, or vote on a # translation. If the flag is set to false, then a user must be promoted to # be a translator in order to submit or vote on translations. ############################################################################# - open_registration_mode: true + open_registration_mode: true + enable_registration_disclaimer: false + registration_disclaimer_path: "/tr8n/common/terms_of_service" ############################################################################# # Tr8n best run with caching enabled # You can configure cache adapter and store parameters by providing the # the name of your class implementation and the store settings. @@ -86,11 +97,11 @@ # gem 'memcache-client' # # You can also provide your own implementation of the adapter: # # cache_adapter: YOUR_CACHE_ADAPTER_CLASS - # + # # Note: Make sure you enable config.class_caching in your environment file # ############################################################################# caching: enabled: false @@ -102,21 +113,21 @@ # By default, Tr8n will use its own logger. If you set it to false, # it will use default Rails logger. ############################################################################# logger: enabled: true - log_path: log/tr8n.log # location of the log file + log_path: "log/tr8n.log" # location of the log file enable_paranoia_mode: true # logs every translator action ############################################################################# # Site Integration Settings ############################################################################# site_info: title: "Tr8n" # site title - provide your site title here contact_email: "support@tr8n.net" # contact email for questions about translations current_locale_method: "current_locale" # application controller method that sets and returns current locale - default_url: "/home" # default site url where to redirect the user if Tr8n is disabled + default_url: "/" # default site url where to redirect the user if Tr8n is disabled default_locale: "en-US" # locale of the site default language sitemap_path: "/config/tr8n/site/sitemap.json" # location of the sitemap definition file splash_screen: "/tr8n/common/splash_screen" # location of the Tr8n splash screen tr8n_layout: "application" # layout for the tr8n pages tr8n_helpers: [] # if you need to add extra helpers @@ -136,47 +147,47 @@ admin: admin? guest: guest? mugshot: mugshot link: link locale: locale - + ############################################################################# # Rules Engine Settings ############################################################################# rules_engine: language_rule_classes: ["Tr8n::NumericRule", "Tr8n::GenderRule", "Tr8n::GenderListRule", "Tr8n::DateRule", "Tr8n::ValueRule"] data_token_classes: ["Tr8n::Tokens::DataToken", "Tr8n::Tokens::HiddenToken", "Tr8n::Tokens::MethodToken", "Tr8n::Tokens::TransformToken"] decoration_token_classes: ["Tr8n::Tokens::DecorationToken"] allow_nil_token_values: true numeric_rule: - token_suffixes: [count, num, age, hours, minutes, years, seconds] - object_method: to_i + token_suffixes: ["count", "num", "age", "hours", "minutes", "years", "seconds"] + object_method: "to_i" gender_rule: - token_suffixes: [user, profile, actor, target] - object_method: gender + token_suffixes: ["user", "profile", "actor", "target", "partner"] + object_method: "gender" method_values: - female: female - male: male - neutral: neutral - unknown: unknown + female: "female" + male: "male" + neutral: "neutral" + unknown: "unknown" list_rule: # use list_rule if your site does not support user genders - object_method: size - token_suffixes: [list] + object_method: "size" + token_suffixes: ["list"] gender_list_rule: # similiar to list rule, but works together with gender rule - object_method: size - token_suffixes: [list] + object_method: "size" + token_suffixes: ["list"] date_rule: - token_suffixes: [date] - object_method: to_date + token_suffixes: ["date"] + object_method: "to_date" value_rule: token_suffixes: "*" - object_method: to_s + object_method: "to_s" # minimal rank makes the translation acceptable for subsitution and counts towards the translator rank translation_threshold: 1 - viewing_user_token: viewing_user + viewing_user_token: "viewing_user" translation_rank_styles: -1000..-5: "color:red;font-weight:bold;" -4..-1: "color:red;" 1..10: "color:green;" 11..1000: "color:green;font-weight:bold;" @@ -184,12 +195,15 @@ ############################################################################# # API Settings ############################################################################# api: enabled: true - response_encoding: json # options: xml, json + response_encoding: "json" # options: xml, json allow_key_registration: true + skip_before_filters: [] # filters from application controller + before_filters: [] # filters from application controller + after_filters: [] # filters from application controller ############################################################################# # Translator Roles - manager level is set at 1000 and anything above # # You can restrict translations by surroudning translation keys with the @@ -241,15 +255,15 @@ monthname_abbr: '%b %d' # Jul 4 monthname_abbr_year: '%b %d, %Y' # Jul 4, 2008 date_time: '%m/%d/%Y at %H:%M' # 01/03/1010 at 5:30 ############################################################################# - # You can synchronize your translation keys and translations with other - # sites that use Tr8n. This way you can get your site translated by + # You can synchronize your translation keys and translations with the + # tr8n.net service. This way you can get your site translated by # millions of users from around the internet. Visit the following url and # register as a developer, register your application and copy your app key - # in the line below: + # and secret in the lines below: # # http://tr8n.net # # To sychronize your translations run the following command: # @@ -263,23 +277,15 @@ secret: "YOUR APP SECRET" # replace with your application secret batch_size: 50 # how many keys to send to the server at a time - if your site supports many language, decrease the batch size all_languages: false # use only enabled languages, or all languages enable_push: false # allows translations to be pushed from the main server using the sync API push_servers: ["tr8n.net"] # only allows those servers to push translations - + ############################################################################# # Environment Settings # You can overload any feature defined in the defaults for any environment ############################################################################# development: - # synchronization: - # server: "http://localhost:3000" # alternative, regional locations will be available in the future - # key: "14ngS3YadRF54PArKR8mre3MJfPzJA0jxW2j2RJu" # replace this with your key - # secret: "ycFdAAQOEmxtpb8gE9M4gqQrgfU4SR1LetkXnLDZ" # replace this with your secret - # batch_size: 50 # how many kesy to send to the server at a time - # all_languages: false # use only enabled languages, or all languages - # enable_push: true # allows translations to be pushed from the main server using the sync API - # push_servers: ["localhost", "tr8n.net"] # only allows those servers to push translations test: qa: