Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: cms/translations/xtm/constants.py

Issue 29908581: Issue #7036 - [XTM Integration] Add support for providing workflow name (Closed)
Patch Set: Addressed comments from Patch Set 1 Created Oct. 18, 2018, 4:23 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # This file is part of the Adblock Plus web scripts, 1 # This file is part of the Adblock Plus web scripts,
2 # Copyright (C) 2006-present eyeo GmbH 2 # Copyright (C) 2006-present eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 CANT_RESOLVE_REMOTE_LANG = 'Cannot resolve remote locale: {0}' 57 CANT_RESOLVE_REMOTE_LANG = 'Cannot resolve remote locale: {0}'
58 PROJECT_EXISTS = ('Error! There already exists an XTM project associated' 58 PROJECT_EXISTS = ('Error! There already exists an XTM project associated'
59 ' with this website (number {0})! If you want to ' 59 ' with this website (number {0})! If you want to '
60 'overwrite this, please delete the project id from ' 60 'overwrite this, please delete the project id from '
61 'settings.ini and run this again.') 61 'settings.ini and run this again.')
62 NO_PROJECT = 'Error! No project configured for {}!' 62 NO_PROJECT = 'Error! No project configured for {}!'
63 NO_TARGET_FILES_FOUND = ('Error: No target files were found in XTM! ' 63 NO_TARGET_FILES_FOUND = ('Error: No target files were found in XTM! '
64 'Please generate them and then try again!') 64 'Please generate them and then try again!')
65 COULD_NOT_SAVE_FILES = ('Error: Could not save the downloaded files to ' 65 COULD_NOT_SAVE_FILES = ('Error: Could not save the downloaded files to '
66 'disk!') 66 'disk!')
67 WORKFLOW_NAME_AND_ID_PROVIDED = ('Error: Provide only one of '
68 '"--workflow-name" and "--workflow-id" '
69 'at a time, not both.')
70 NO_WORKFLOW_INFO = ('Error: No workflow information provided. Please '
71 'use one of "--workflow-id" or "--workflow-name" to '
72 'do that.')
73 NO_WORKFLOW_FOR_NAME = ('Error: Could not find any workflow with the '
74 'name "{}"')
67 75
68 76
69 class WarningMessages: 77 class WarningMessages:
70 LOCALE_NOT_SUPPORTED = ('The following locale is not supported: "{0}". ' 78 LOCALE_NOT_SUPPORTED = ('The following locale is not supported: "{0}". '
71 'Ignoring...') 79 'Ignoring...')
72 80
73 81
74 class ProjectName: 82 class ProjectName:
75 MAX_LENGTH = 150 83 MAX_LENGTH = 150
76 INVALID_CHARS = list('\\/:*?"<>|{}') 84 INVALID_CHARS = list('\\/:*?"<>|{}')
(...skipping 20 matching lines...) Expand all
97 class ProjectCreate: 105 class ProjectCreate:
98 MAIN = 'Sub-mode used to create a new project with XTM Cloud.' 106 MAIN = 'Sub-mode used to create a new project with XTM Cloud.'
99 NAME = 'The name of the project will have once created.' 107 NAME = 'The name of the project will have once created.'
100 DESC = 'TBD' 108 DESC = 'TBD'
101 CLIENT_ID = 'TBD' 109 CLIENT_ID = 'TBD'
102 REF_ID = 'TBD' 110 REF_ID = 'TBD'
103 WORKFLOW_ID = 'TBD' 111 WORKFLOW_ID = 'TBD'
104 SOURCE = 'The source language for this project. Default "en_US".' 112 SOURCE = 'The source language for this project. Default "en_US".'
105 SAVE_ID = ('Whether to save the id of the project to settings.ini or ' 113 SAVE_ID = ('Whether to save the id of the project to settings.ini or '
106 'not. Default False.') 114 'not. Default False.')
115 WORKFLOW_NAME = 'The name of the workflow used in the project.'
107 116
108 class ProjectUpload: 117 class ProjectUpload:
109 MAIN = 'Sub-mode used to upload files to an XTM Cloud project.' 118 MAIN = 'Sub-mode used to upload files to an XTM Cloud project.'
110 NO_OVERWRITE = ('If set, the script will not overwrite the files ' 119 NO_OVERWRITE = ('If set, the script will not overwrite the files '
111 'already present in the XTM environment.') 120 'already present in the XTM environment.')
112 121
113 122
114 class Config: 123 class Config:
115 XTM_SECTION = 'XTM' 124 XTM_SECTION = 'XTM'
116 PROJECT_OPTION = 'project_id' 125 PROJECT_OPTION = 'project_id'
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 166
158 class FileNames: 167 class FileNames:
159 MAX_LENGTH = 256 168 MAX_LENGTH = 256
160 PATH_SEP_REP = '___' 169 PATH_SEP_REP = '___'
161 170
162 171
163 UNDER_ANALYSIS_MESSAGE = ('403: {"reason":"Project is under analysis. ' 172 UNDER_ANALYSIS_MESSAGE = ('403: {"reason":"Project is under analysis. '
164 'Please wait for analysis end."}') 173 'Please wait for analysis end."}')
165 174
166 MAX_WAIT_TIME = 10 175 MAX_WAIT_TIME = 10
OLDNEW

Powered by Google App Engine
This is Rietveld