Skip to content

Commit

Permalink
Applanga Command Line Interface Version 1.0.104
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-roemer committed Dec 19, 2024
1 parent 60a2ff1 commit c888bee
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
*Applanga CLI Documentation:* <https://www.applanga.com/docs-integration/cli>
***

### Version 1.0.103 (10 Dec 2024)
### Version 1.0.104 (19 Dec 2024)
#### Fixed
- Added improved contradictory configuration error
- Fixed init script for windows file path conversion
---

### Version 1.0.103 (10 Dez 2024)
#### Fixed
- Fixed contradictory configurations error messages for ios / ios_stringsdict overlap
---
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Applanga Localization Command Line Interface (CLI)

***
*Version:* 1.0.103
*Version:* 1.0.104

*Website:* <https://www.applanga.com>

Expand Down
2 changes: 1 addition & 1 deletion commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def init(ctx):
default_baselanguage_path = constants.FILE_FORMATS[file_format]['default_baselanguage_path']
if platform.system() == 'Windows':
# If we are in Windows convert into correct format
default_baselanguage_path = files.convertToWindowsPath(defaultdefault_baselanguage_path_source_baselanguage_path)
default_baselanguage_path = files.convertToWindowsPath(default_baselanguage_path)

baselanguage_path = input('Base language path [\"%s\"]: ' % default_baselanguage_path)
baselanguage_path = baselanguage_path or default_baselanguage_path
Expand Down
5 changes: 4 additions & 1 deletion lib/config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import platform
import json
from functools import cmp_to_key
from pathlib import Path


class ApplangaConfigFileNotValidException(Exception):
Expand Down Expand Up @@ -175,8 +176,10 @@ def compareTag(self, other):
return tagEqual

def ignoreFormatOverlap(self, other):
if Path(self.path).stem != Path(other.path).stem:
return False
for exclude in constants.EXCLUDE_FORMAT_OVERLAP:
if (self.file_format == exclude[0] and other.file_format == exclude[1]) or (self.file_format == exclude[1] and other.file_format == exclude[0]):
if ((self.file_format == exclude[0] and other.file_format == exclude[1]) or (self.file_format == exclude[1] and other.file_format == exclude[0])):
return True
return False

Expand Down
2 changes: 1 addition & 1 deletion lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NUMBER = '1.0.103'
VERSION_NUMBER = '1.0.104'
APPLANGA_HOST = 'https://api.applanga.com'
API_BASE_PATH = '/v1/api'
CONFIG_FILE_NAME = '.applanga.json'
Expand Down

0 comments on commit c888bee

Please sign in to comment.