Translation to German does not work for ?%1$s %2$ss of access‘
-
Translation to German does not work for ?%1$s %2$ss of access‘
Source code
/includes/models/model.llms.access.plan.php:294 %1$s %2$s of access %1$s %2$ss of access
%2$ is always translated with the keyword year | month | day | week
I can not find a way to translate this keyword in the .po file.That’s why I’ve looked at the source code and wrote a quick and simple solution that is enough for my purposes, but this should be a translation for one and many, so that it can work also with ‘weeks’ (?Wochen‘ in german).
$r = sprintf( _nx( '%1$s %2$s of access', '%1$s %2$ss of access', $this->get( 'access_length' ), 'Access period', 'lifterlms' ), $this->get( 'access_length' ), __($this->get( 'access_period' ),'lifterlms') );
Because ?Wochen‘ (=weeks) ends in the majority with ‘n’ all others end in the majority with ‘e’, ??therefore you can not simply add a letter behind the singular word.
For a better overview, the English and the corresponding German version.
1 year access = 1 Jahr Zugang 7 years access = 7 Jahre Zugang 1 month access = 1 Monat Zugang 7 months access = 7 Monate Zugang 1 week access = 1 Woche Zugang 7 weeks access = 7 Wochen Zugang 1 day access = 1 Tag Zugang 7 days access = 7 Tage Zugang
If you need more information, please let me know.
best
Christian
- The topic ‘Translation to German does not work for ?%1$s %2$ss of access‘’ is closed to new replies.