File tree Expand file tree Collapse file tree 3 files changed +9032
-2
lines changed Expand file tree Collapse file tree 3 files changed +9032
-2
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,21 @@ tasks:
346346 - task drush -- --yes pm:uninstall potx
347347 silent : true
348348
349+ config-translations:export :
350+ cmds :
351+ - task drush -- config_translation_po:export da > translations/config-translations.da.po
352+ # Fix plurals spec in PO file
353+ # https://drupalsun.com/eelke/2020/08/17/tale-mistranslated-plurals
354+ # https://www.drupal.org/project/drupal/issues/3496223
355+ - ' task compose -- exec phpfpm sed -i "s/Plural-Forms: nplurals=2; plural=(n > 1);/Plural-Forms: nplurals=2; plural=(n != 1);/" translations/config-translations.da.po'
356+ silent : true
357+
358+ config-translations:import :
359+ cmds :
360+ # Note: We use an empty type to import as not-customized.
361+ - task drush -- config_translation_po:import --type='' --override=not-customized da ../translations/config-translations.da.po
362+ silent : true
363+
349364 # @todo Can we use `drush locale:check` and/or `drush locale:update` to update
350365 # module translations without overriding existing translations?
351366 # @todo Do we want to override (existing) translations?
Original file line number Diff line number Diff line change 2525 "drupal/color_field" : " ^3.0" ,
2626 "drupal/config_ignore" : " ^3.2" ,
2727 "drupal/config_import_locale" : " ^2.0" ,
28- "drupal/config_translation_po" : " ^1.0 " ,
28+ "drupal/config_translation_po" : " dev-3439416-added-drush-command " ,
2929 "drupal/core" : " ^10.0" ,
3030 "drupal/core-composer-scaffold" : " ^10.0" ,
3131 "drupal/core-project-message" : " ^10.0" ,
104104 },
105105 "drupal" : {
106106 "type" : " composer" ,
107- "url" : " https://packages.drupal.org/8"
107+ "url" : " https://packages.drupal.org/8" ,
108+ "exclude" : [
109+ " drupal/config_translation_po"
110+ ]
108111 },
109112 "asset-packagist" : {
110113 "type" : " composer" ,
190193 "reference" : " hotfix/change-psr-log-dependency"
191194 }
192195 }
196+ },
197+ "drupal/config_translation_po" : {
198+ "type" : " git" ,
199+ "url" : " https://git.drupalcode.org/issue/config_translation_po-3439416.git"
193200 }
194201 },
195202 "minimum-stability" : " dev" ,
You can’t perform that action at this time.
0 commit comments