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 |
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 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 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>.poPlease also add help/instruction in the drush command
language_translations_drush_command()Comment #4
andrey.troeglazov commentedComment #5
imyaro 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 commentedHm.. Why test is started? As I know this project does not contains any tests.
Updated help of the drush command.
Comment #9
imyaro commentedComment #12
geek-merlinPatch looks solid.
Comment #14
geek-merlin