Componette

Componette

Kdyby

Kdyby / Translation v3.0.6

Integration of Symfony/Translation into Nette Framework

download-cloud-line composer require kdyby/translation
  • v3.0.6 v3.0.6

    Do not merge default fallbacks (#188)

  • v3.0.5 v3.0.5

    Nette 3.1 compatibility (#183)
    Fix translation of messages with dot at the end (#181)
    Fix latte pair macros compatibility (#185)
    Fix compatibility with Nette/Caching v3.1.3 (#187)

  • v3.0.3 v3.0.3

    Fixed using parameters without count.

  • v3.0.2 v3.0.2

    Fixed return value to always be string.

  • v3.0.1 v3.0.1

    Fix nette/finder version constraint.

  • v3.0.0 v3.0.0

    Updated for Nette 3.0.

  • v2.6.0 v2.6.0

    • Dropped support for PHP 5.6 and 7.0
    • Fixed compatibility with Latte 2.5
  • v2.5.2 v2.5.2

    Some of the deprecated interfaces, classes and methods are still used. Send PRs to help fix this.

  • v2.5.1 v2.5.1

    • Cast integer message id to string (#154 by @lulco)
  • v2.5.0 v2.5.0

    • Require Symfony/Translation 3.4 or 4.x.
    • Fix compatibility with PHP 7.2.
    • #139 Add ArrayLoader support (@jtojnar).
  • v2.4.0 v2.4.0

    This release is for Nette ~2.4

  • v2.3.1 v2.3.1

    This release is for Nette 2.3.*

  • v2.3.0 v2.3.0

    • #106 Fix compatibility with Nette/DI 2.4; thx @enumag
    • #100 Faster searching of resources; thx @MartkCz
    • #99 Faster compiling of extension; thx @MartkCz
    • #98 Add translation domain to tracy panel; thx @enumag
    • #95 Logging support for untranslated messages; thx @tomasstrejcek
    • #96 Fix usage without Tracy; thx @enumag
    • #93 Added support for skipping prefixed domain; thx @lexinek & @akadlec
    • #92 Added JsonFileLoader; thx @ondrs
    • #91 Make nette/application dependency optional; thx @enumag
    • #90 TranslationExtension: Constant names are prefixed with TAG_ not suffixed; thx @enumag
    • #85 Removed preg_replace from transChoice call to allow negative numbers; thx @wodCZ
    • #82 Improved AcceptHeaderResolver; thx @enumag
    • c414046 - Fixed fallback circular reference in CatalogueFactory
    • 9189f91 - Nette fixed BaseControl::translate() (tests are no longer skipping it)
    • Compatibility with Symfony 2.5
    • 300d8eb - AcceptHeaderResolver: accept Http\IRequest instead of Http\Request
    • Fixed PHP 7.0 compatibility

    This release is for Nette ~2.3

  • v2.2.0 v2.2.0

    • Make the Translator::translate(, count) parameter optional
    • Return full provided message string if translation was not found
    • Replaces parameter placehoders with values even on untranslated messages
    • Introduced IResourceLoader and dropped LoadersInitializer + Translator has less dependencies + loaders are created lazily
    • Introduced CatalogueCompiler::invalidateCache()
    • Simplified default locale resolution (LocaleResolver\DefaultLocale is dropped), introduced Translator::getDefaultLocale()
    • Option to disable whitelisting
    • Allow shortNoEscape in LatteExtractor
    • Translator::getAvailableLocales() sorts the locales for platform independent result
    • Compiler extension: add latte macros lazy
    • Better debug information for Neon errors.
    • PrefixedTranslator correctly prefixes Phrase object

    This release is for Nette ~2.3

  • v2.1.0 v2.1.0

    • Make the Translator::translate(, count) parameter optional
    • Return full provided message string if translation was not found
    • Replaces parameter placehoders with values even on untranslated messages
    • Introduced IResourceLoader and dropped LoadersInitializer + Translator has less dependencies + loaders are created lazily
    • Introduced CatalogueCompiler::invalidateCache()
    • Simplified default locale resolution (LocaleResolver\DefaultLocale is dropped), introduced Translator::getDefaultLocale()
    • Option to disable whitelisting
    • Allow shortNoEscape in LatteExtractor
    • Translator::getAvailableLocales() sorts the locales for platform independent result
    • Compiler extension: add latte macros lazy
    • Better debug information for Neon errors.
    • PrefixedTranslator correctly prefixes Phrase object

    This release is for Nette 2.2.*

  • v2.0.3 v2.0.3

    Fixed possible security issue, with locales not beeing properly escaped, before they were written to compiled catalogue on production. If you have your router written strictly to whitelist locales, then you're safe.

    But still, you should better upgrade NOW.

    This release is for Nette 2.2.*

  • v1.2.2 v1.2.2

    Fixed possible security issue, with locales not beeing properly escaped, before they were written to compiled catalogue on production. If you have your router written strictly to whitelist locales, then you're safe.

    But still, you should better upgrade NOW.

    This release is for Nette 2.1.*

  • v0.10.4 v0.10.4

    Fixed possible security issue, with locales not beeing properly escaped, before they were written to compiled catalogue on production. If you have your router written strictly to whitelist locales, then you're safe.

    But still, you should better upgrade NOW.

    This release is for Nette 2.0.*

  • v2.0.2 v2.0.2

    • Bump dependency on Symfony to 2.5
  • v2.0.1 v2.0.1

    • Fixed composer dependencies
  • v0.10.3 v0.10.3

    • Added method Translator::domain() that returns PrefixedTranslator
    • Fixed compatibility with Nette
  • v1.2.1 v1.2.1

    • SessionResolver requires IResponse instead of Response
  • v2.0.0 v2.0.0

    • Bumped Nette dependency to 2.2
    • Brutal internal refactoring to fix compatibility with new Nette
    • Visualisation of locale resolution process in tracy bar panel
    • List ignored resources in panel
    • Loaded resources listed in panel
    • Fixed locale handling in forward requests
    • Yaml: visualisation of Yaml\ParseException in bluescreen, thx @vojtech-dobes
    • Locale SessionResolver checks that session is started
    • Locale resolvers can be enabled and disabled
    • Added method Translator::domain() that returns PrefixedTranslator
  • v1.2.0 v1.2.0

    • Implemented Phrase container for translation messages
    • Locale resolvers can be enabled and disabled
    • improved compatibility with development Nette
    • Loaded and ignored resources listed in panel
    • Visualisation of locale resolution process in tracy bar panel

    This release is for nightly Nette 2.1-dev

  • v1.1.2 v1.1.2

    • fixed several compatibility issues
    • upgraded to newer symfony components
    • added PrefixedTranslator and macros to save your keyboards
    • fixed CatalogueCompiler usage when fallback is changed on runtime
    • added locale SessionResolver

    This release is for nightly Nette 2.1-dev

  • v0.10.2 v0.10.2

    • fixed several compatibility issues
    • upgraded to newer symfony components
    • added PrefixedTranslator and macros to save your keyboards
    • fixed CatalogueCompiler usage when fallback is changed on runtime
    • added locale SessionResolver

    This release is for stable Nette 2.0.*

  • v1.1.1 v1.1.1

    • Fixed compatibility with newest stable Symfony/Translation (2.3.7 as of today)
    • Invalidating locale on every application request, which fixes problem with too early locale resolution (before request), that could result in locale parameter from router not beeing used.
    • Added bunch of tests

    This release is for Nette nightly 2.1-dev

  • v0.10.1 v0.10.1

    • Fixed compatibility with newest stable Symfony/Translation (2.3.7 as of today)
    • Invalidating locale on every application request, which fixes problem with too early locale resolution (before request), that could result in locale parameter from router not beeing used.
    • Added bunch of tests

    This release is for stable Nette 2.0.*

  • v1.1 v1.1

    • Added ITranslationProvider for translation resources
    • Added translation resource whitelisting
    • Translator broken apart to FallbackResolver, LoadersInitializer, CatalogueFactory and CatalogueCompiler

    BC WARNING: If you're using any other language than cs or en (those are default), you have to whitelist them

    translator:
        whitelist: ['cs', 'en', ...]
  • v0.10.0 v0.10.0

    • Upgraded symfony dependencies
    • Fixed cache invalidation when adding or removing a translation file
    • Added ITranslationProvider for translation resources
    • Added translation resource whitelisting
    • Translator broken apart to FallbackResolver, LoadersInitializer, CatalogueFactory and CatalogueCompiler

    BC WARNING: If you're using any other language than cs or en (those are default), you have to whitelist them

    translator:
        whitelist: ['cs', 'en', ...]
Componette Componette felix@nette.org