-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from oarepo/copy-instead-link
Copying instead of linking sources to assets
- Loading branch information
Showing
10 changed files
with
233 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import click | ||
from oarepo_tools.make_translations import main | ||
|
||
from ..config import OARepoConfig | ||
from .base import command_sequence, nrp_command | ||
|
||
from oarepo_tools.make_translations import main | ||
|
||
|
||
@nrp_command.command(name="translations") | ||
@command_sequence() | ||
@click.pass_context | ||
def translations_command(ctx, *, config: OARepoConfig, local_packages=None, checks=True, **kwargs): | ||
def translations_command( | ||
ctx, *, config: OARepoConfig, local_packages=None, checks=True, **kwargs | ||
): | ||
"""Create translations for the repository. | ||
This command will create source translation files inside the i18n/translations directory. | ||
Edit the .po files there and run nrp translations again to compile the translations. | ||
To change the translated languages, edit the oarepo.yaml file. | ||
""" | ||
ctx.invoke(main, setup_cfg=config.config_file) | ||
ctx.invoke(main, setup_cfg=config.config_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.