Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, it will be good to have ability to import language by url.
Can you realize it?
Comment | File | Size | Author |
---|---|---|---|
#8 | drush_language-import_by_url-2174065-7.patch | 1.46 KB | imyaro |
| |||
#1 | drush_language-import_by_url-2174065-1.patch | 1.56 KB | kala4ek |
|
Comments
Comment #1
kala4ekI made a patch that allows import translations via url.
Comment #2
ndf CreditAttribution: ndf commentedIt is currently possible to:
- Import translations for one specific language
- Import translations for one or more groups (views, panels, etc)
When importing a specific combination 'language + group" it is possible to specify the source *file*.
If you want to import multiple combinations ('1 language, multiple groups) it is possible to specify the source *directory*.
In the latter case a naming convention is used to get the specific source *file*.
Allright, so instead of using a disk-location (directory/file), this feature request is about using a URL as source.
Should be possible, but my main question is if it is desirable to expose translation files for one of your projects online.
Comment #3
ndf CreditAttribution: ndf commentedIf typos/formatting is still an issue, please do it a different issue.
drupal_language_import.po should not be harcoded.
The valid_url should either point to one translation-file for a specified translation-group.
Or point to a 'directory' that contains translation-files that follow the naming convention:
<translation-group>.<langcode>.po
Please also add help/instruction in the drush command
language_translations_drush_command()
Comment #4
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commentedComment #5
imyaro CreditAttribution: imyaro as a volunteer and at DrupalJedi commentedHello,
Seems Andrey forgot about this task, I will finally finish it.
Please check this patch. For me it works well.
Thanks.
Comment #8
imyaro CreditAttribution: imyaro as a volunteer and at DrupalJedi commentedHm.. Why test is started? As I know this project does not contains any tests.
Updated help of the drush command.
Comment #9
imyaro CreditAttribution: imyaro as a volunteer and at DrupalJedi commentedComment #12
geek-merlinPatch looks solid.
Comment #14
geek-merlin