Compare commits
37
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a05659c878 | ||
|
|
43eaa84a8f | ||
|
|
2cd4175689 | ||
|
|
d6a83fe6a1 | ||
|
|
3c92cb7c2b | ||
|
|
0076acb2ba | ||
|
|
92a3465ae1 | ||
|
|
99c0fda4da | ||
|
|
ac96335ef0 | ||
|
|
b83888c74a | ||
|
|
787d0d21c9 | ||
|
|
7b26b184d1 | ||
|
|
f17ad56def | ||
|
|
de438d00e1 | ||
|
|
6787169583 | ||
|
|
291e1a392b | ||
|
|
7c5aa3685f | ||
|
|
9c03914edd | ||
|
|
c980ee10c0 | ||
|
|
fa4d2bc09a | ||
|
|
7faf7e50fa | ||
|
|
bb201ef9c1 | ||
|
|
82dbcfbb9b | ||
|
|
9fd8fd89ed | ||
|
|
3a2370ea1f | ||
|
|
e7db714091 | ||
|
|
c6b4a2b141 | ||
|
|
7459463a3c | ||
|
|
c9bf436895 | ||
|
|
f8dbf171e1 | ||
|
|
e59c717dc0 | ||
|
|
f2bffe2dc6 | ||
|
|
5d827df08c | ||
|
|
bdb3c887f3 | ||
|
|
f902e8aca9 | ||
|
|
65a3eeca76 | ||
|
|
f72538d30f |
@@ -0,0 +1,12 @@
|
||||
# CI Configuration
|
||||
|
||||
## CI Lite Mode
|
||||
|
||||
Skip non-essential CI workflows by setting a repository variable:
|
||||
|
||||
**Settings → Secrets and variables → Actions → Variables → New repository variable**
|
||||
|
||||
- Name: `CI_PROFILE`
|
||||
- Value: `lite`
|
||||
|
||||
Skips resource-intensive builds, releases, and OSS-specific workflows. Useful for deployment-only forks or faster CI runs.
|
||||
@@ -1,403 +0,0 @@
|
||||
"""
|
||||
Author: Ludy87
|
||||
Description: This script processes .properties files for localization checks. It compares translation files in a branch with
|
||||
a reference file to ensure consistency. The script performs two main checks:
|
||||
1. Verifies that the number of lines (including comments and empty lines) in the translation files matches the reference file.
|
||||
2. Ensures that all keys in the translation files are present in the reference file and vice versa.
|
||||
|
||||
The script also provides functionality to update the translation files to match the reference file by adding missing keys and
|
||||
adjusting the format.
|
||||
|
||||
Usage:
|
||||
python check_language_properties.py --reference-file <path_to_reference_file> --branch <branch_name> [--actor <actor_name>] [--files <list_of_changed_files>]
|
||||
"""
|
||||
# Sample for Windows:
|
||||
# python .github/scripts/check_language_properties.py --reference-file src\main\resources\messages_en_GB.properties --branch "" --files src\main\resources\messages_de_DE.properties src\main\resources\messages_uk_UA.properties
|
||||
|
||||
import copy
|
||||
import glob
|
||||
import os
|
||||
import argparse
|
||||
import re
|
||||
|
||||
|
||||
def find_duplicate_keys(file_path):
|
||||
"""
|
||||
Identifies duplicate keys in a .properties file.
|
||||
:param file_path: Path to the .properties file.
|
||||
:return: List of tuples (key, first_occurrence_line, duplicate_line).
|
||||
"""
|
||||
keys = {}
|
||||
duplicates = []
|
||||
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
for line_number, line in enumerate(file, start=1):
|
||||
stripped_line = line.strip()
|
||||
|
||||
# Skip empty lines and comments
|
||||
if not stripped_line or stripped_line.startswith("#"):
|
||||
continue
|
||||
|
||||
# Split the line into key and value
|
||||
if "=" in stripped_line:
|
||||
key, _ = stripped_line.split("=", 1)
|
||||
key = key.strip()
|
||||
|
||||
# Check if the key already exists
|
||||
if key in keys:
|
||||
duplicates.append((key, keys[key], line_number))
|
||||
else:
|
||||
keys[key] = line_number
|
||||
|
||||
return duplicates
|
||||
|
||||
|
||||
# Maximum size for properties files (e.g., 200 KB)
|
||||
MAX_FILE_SIZE = 200 * 1024
|
||||
|
||||
|
||||
def parse_properties_file(file_path):
|
||||
"""
|
||||
Parses a .properties file and returns a structured list of its contents.
|
||||
:param file_path: Path to the .properties file.
|
||||
:return: List of dictionaries representing each line in the file.
|
||||
"""
|
||||
properties_list = []
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
for line_number, line in enumerate(file, start=1):
|
||||
stripped_line = line.strip()
|
||||
|
||||
# Handle empty lines
|
||||
if not stripped_line:
|
||||
properties_list.append(
|
||||
{"line_number": line_number, "type": "empty", "content": ""}
|
||||
)
|
||||
continue
|
||||
|
||||
# Handle comments
|
||||
if stripped_line.startswith("#"):
|
||||
properties_list.append(
|
||||
{
|
||||
"line_number": line_number,
|
||||
"type": "comment",
|
||||
"content": stripped_line,
|
||||
}
|
||||
)
|
||||
continue
|
||||
|
||||
# Handle key-value pairs
|
||||
match = re.match(r"^([^=]+)=(.*)$", line)
|
||||
if match:
|
||||
key, value = match.groups()
|
||||
properties_list.append(
|
||||
{
|
||||
"line_number": line_number,
|
||||
"type": "entry",
|
||||
"key": key.strip(),
|
||||
"value": value.strip(),
|
||||
}
|
||||
)
|
||||
|
||||
return properties_list
|
||||
|
||||
|
||||
def write_json_file(file_path, updated_properties):
|
||||
"""
|
||||
Writes updated properties back to the file in their original format.
|
||||
:param file_path: Path to the .properties file.
|
||||
:param updated_properties: List of updated properties to write.
|
||||
"""
|
||||
updated_lines = {entry["line_number"]: entry for entry in updated_properties}
|
||||
|
||||
# Sort lines by their numbers and retain comments and empty lines
|
||||
all_lines = sorted(set(updated_lines.keys()))
|
||||
|
||||
original_format = []
|
||||
for line in all_lines:
|
||||
if line in updated_lines:
|
||||
entry = updated_lines[line]
|
||||
else:
|
||||
entry = None
|
||||
ref_entry = updated_lines[line]
|
||||
if ref_entry["type"] in ["comment", "empty"]:
|
||||
original_format.append(ref_entry)
|
||||
elif entry is None:
|
||||
# Add missing entries from the reference file
|
||||
original_format.append(ref_entry)
|
||||
elif entry["type"] == "entry":
|
||||
# Replace entries with those from the current JSON
|
||||
original_format.append(entry)
|
||||
|
||||
# Write the updated content back to the file
|
||||
with open(file_path, "w", encoding="utf-8", newline="\n") as file:
|
||||
for entry in original_format:
|
||||
if entry["type"] == "comment":
|
||||
file.write(f"{entry['content']}\n")
|
||||
elif entry["type"] == "empty":
|
||||
file.write(f"{entry['content']}\n")
|
||||
elif entry["type"] == "entry":
|
||||
file.write(f"{entry['key']}={entry['value']}\n")
|
||||
|
||||
|
||||
def update_missing_keys(reference_file, file_list, branch=""):
|
||||
"""
|
||||
Updates missing keys in the translation files based on the reference file.
|
||||
:param reference_file: Path to the reference .properties file.
|
||||
:param file_list: List of translation files to update.
|
||||
:param branch: Branch where the files are located.
|
||||
"""
|
||||
reference_properties = parse_properties_file(reference_file)
|
||||
for file_path in file_list:
|
||||
basename_current_file = os.path.basename(os.path.join(branch, file_path))
|
||||
if (
|
||||
basename_current_file == os.path.basename(reference_file)
|
||||
or not file_path.endswith(".properties")
|
||||
or not basename_current_file.startswith("messages_")
|
||||
):
|
||||
continue
|
||||
|
||||
current_properties = parse_properties_file(os.path.join(branch, file_path))
|
||||
updated_properties = []
|
||||
for ref_entry in reference_properties:
|
||||
ref_entry_copy = copy.deepcopy(ref_entry)
|
||||
for current_entry in current_properties:
|
||||
if current_entry["type"] == "entry":
|
||||
if ref_entry_copy["type"] != "entry":
|
||||
continue
|
||||
if ref_entry_copy["key"].lower() == current_entry["key"].lower():
|
||||
ref_entry_copy["value"] = current_entry["value"]
|
||||
updated_properties.append(ref_entry_copy)
|
||||
write_json_file(os.path.join(branch, file_path), updated_properties)
|
||||
|
||||
|
||||
def check_for_missing_keys(reference_file, file_list, branch):
|
||||
update_missing_keys(reference_file, file_list, branch)
|
||||
|
||||
|
||||
def read_properties(file_path):
|
||||
if os.path.isfile(file_path) and os.path.exists(file_path):
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
return file.read().splitlines()
|
||||
return [""]
|
||||
|
||||
|
||||
def check_for_differences(reference_file, file_list, branch, actor):
|
||||
reference_branch = reference_file.split("/")[0]
|
||||
basename_reference_file = os.path.basename(reference_file)
|
||||
|
||||
report = []
|
||||
report.append(f"#### 🔄 Reference Branch: `{reference_branch}`")
|
||||
reference_lines = read_properties(reference_file)
|
||||
has_differences = False
|
||||
|
||||
only_reference_file = True
|
||||
|
||||
file_arr = file_list
|
||||
|
||||
if len(file_list) == 1:
|
||||
file_arr = file_list[0].split()
|
||||
base_dir = os.path.abspath(
|
||||
os.path.join(os.getcwd(), "app", "core", "src", "main", "resources")
|
||||
)
|
||||
|
||||
for file_path in file_arr:
|
||||
file_normpath = os.path.normpath(file_path)
|
||||
absolute_path = os.path.abspath(file_normpath)
|
||||
# Verify that file is within the expected directory
|
||||
if not absolute_path.startswith(base_dir):
|
||||
raise ValueError(f"Unsafe file found: {file_normpath}")
|
||||
# Verify file size before processing
|
||||
if os.path.getsize(os.path.join(branch, file_normpath)) > MAX_FILE_SIZE:
|
||||
raise ValueError(
|
||||
f"The file {file_normpath} is too large and could pose a security risk."
|
||||
)
|
||||
|
||||
basename_current_file = os.path.basename(os.path.join(branch, file_normpath))
|
||||
if (
|
||||
basename_current_file == basename_reference_file
|
||||
or (
|
||||
# only local windows command
|
||||
not file_normpath.startswith(
|
||||
os.path.join(
|
||||
"", "app", "core", "src", "main", "resources", "messages_"
|
||||
)
|
||||
)
|
||||
and not file_normpath.startswith(
|
||||
os.path.join(
|
||||
os.getcwd(),
|
||||
"app",
|
||||
"core",
|
||||
"src",
|
||||
"main",
|
||||
"resources",
|
||||
"messages_",
|
||||
)
|
||||
)
|
||||
)
|
||||
or not file_normpath.endswith(".properties")
|
||||
or not basename_current_file.startswith("messages_")
|
||||
):
|
||||
continue
|
||||
only_reference_file = False
|
||||
report.append(f"#### 📃 **File Check:** `{basename_current_file}`")
|
||||
current_lines = read_properties(os.path.join(branch, file_path))
|
||||
reference_line_count = len(reference_lines)
|
||||
current_line_count = len(current_lines)
|
||||
|
||||
if reference_line_count != current_line_count:
|
||||
report.append("")
|
||||
report.append("1. **Test Status:** ❌ **_Failed_**")
|
||||
report.append(" - **Issue:**")
|
||||
has_differences = True
|
||||
if reference_line_count > current_line_count:
|
||||
report.append(
|
||||
f" - **_Mismatched line count_**: {reference_line_count} (reference) vs {current_line_count} (current). Comments, empty lines, or translation strings are missing."
|
||||
)
|
||||
elif reference_line_count < current_line_count:
|
||||
report.append(
|
||||
f" - **_Too many lines_**: {reference_line_count} (reference) vs {current_line_count} (current). Please verify if there is an additional line that needs to be removed."
|
||||
)
|
||||
else:
|
||||
report.append("1. **Test Status:** ✅ **_Passed_**")
|
||||
|
||||
# Check for missing or extra keys
|
||||
current_keys = []
|
||||
reference_keys = []
|
||||
for line in current_lines:
|
||||
if not line.startswith("#") and line != "" and "=" in line:
|
||||
key, _ = line.split("=", 1)
|
||||
current_keys.append(key)
|
||||
for line in reference_lines:
|
||||
if not line.startswith("#") and line != "" and "=" in line:
|
||||
key, _ = line.split("=", 1)
|
||||
reference_keys.append(key)
|
||||
|
||||
current_keys_set = set(current_keys)
|
||||
reference_keys_set = set(reference_keys)
|
||||
missing_keys = current_keys_set.difference(reference_keys_set)
|
||||
extra_keys = reference_keys_set.difference(current_keys_set)
|
||||
missing_keys_list = list(missing_keys)
|
||||
extra_keys_list = list(extra_keys)
|
||||
|
||||
if missing_keys_list or extra_keys_list:
|
||||
has_differences = True
|
||||
missing_keys_str = "`, `".join(missing_keys_list)
|
||||
extra_keys_str = "`, `".join(extra_keys_list)
|
||||
report.append("2. **Test Status:** ❌ **_Failed_**")
|
||||
report.append(" - **Issue:**")
|
||||
if missing_keys_list:
|
||||
spaces_keys_list = []
|
||||
for key in missing_keys_list:
|
||||
if " " in key:
|
||||
spaces_keys_list.append(key)
|
||||
if spaces_keys_list:
|
||||
spaces_keys_str = "`, `".join(spaces_keys_list)
|
||||
report.append(
|
||||
f" - **_Keys containing unnecessary spaces_**: `{spaces_keys_str}`!"
|
||||
)
|
||||
report.append(
|
||||
f" - **_Extra keys in `{basename_current_file}`_**: `{missing_keys_str}` that are not present in **_`{basename_reference_file}`_**."
|
||||
)
|
||||
if extra_keys_list:
|
||||
report.append(
|
||||
f" - **_Missing keys in `{basename_reference_file}`_**: `{extra_keys_str}` that are not present in **_`{basename_current_file}`_**."
|
||||
)
|
||||
else:
|
||||
report.append("2. **Test Status:** ✅ **_Passed_**")
|
||||
|
||||
if find_duplicate_keys(os.path.join(branch, file_normpath)):
|
||||
has_differences = True
|
||||
output = "\n".join(
|
||||
[
|
||||
f" - `{key}`: first at line {first}, duplicate at `line {duplicate}`"
|
||||
for key, first, duplicate in find_duplicate_keys(
|
||||
os.path.join(branch, file_normpath)
|
||||
)
|
||||
]
|
||||
)
|
||||
report.append("3. **Test Status:** ❌ **_Failed_**")
|
||||
report.append(" - **Issue:**")
|
||||
report.append(" - duplicate entries were found:")
|
||||
report.append(output)
|
||||
else:
|
||||
report.append("3. **Test Status:** ✅ **_Passed_**")
|
||||
|
||||
report.append("")
|
||||
report.append("---")
|
||||
report.append("")
|
||||
if has_differences:
|
||||
report.append("## ❌ Overall Check Status: **_Failed_**")
|
||||
report.append("")
|
||||
report.append(
|
||||
f"@{actor} please check your translation if it conforms to the standard. Follow the format of [messages_en_GB.properties](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/app/core/src/main/resources/messages_en_GB.properties)"
|
||||
)
|
||||
else:
|
||||
report.append("## ✅ Overall Check Status: **_Success_**")
|
||||
report.append("")
|
||||
report.append(
|
||||
f"Thanks @{actor} for your help in keeping the translations up to date."
|
||||
)
|
||||
|
||||
if not only_reference_file:
|
||||
print("\n".join(report))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Find missing keys")
|
||||
parser.add_argument(
|
||||
"--actor",
|
||||
required=False,
|
||||
help="Actor from PR.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--reference-file",
|
||||
required=True,
|
||||
help="Path to the reference file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--branch",
|
||||
type=str,
|
||||
required=True,
|
||||
help="Branch name.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--check-file",
|
||||
type=str,
|
||||
required=False,
|
||||
help="List of changed files, separated by spaces.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--files",
|
||||
nargs="+",
|
||||
required=False,
|
||||
help="List of changed files, separated by spaces.",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Sanitize --actor input to avoid injection attacks
|
||||
if args.actor:
|
||||
args.actor = re.sub(r"[^a-zA-Z0-9_\\-]", "", args.actor)
|
||||
|
||||
# Sanitize --branch input to avoid injection attacks
|
||||
if args.branch:
|
||||
args.branch = re.sub(r"[^a-zA-Z0-9\\-]", "", args.branch)
|
||||
|
||||
file_list = args.files
|
||||
if file_list is None:
|
||||
if args.check_file:
|
||||
file_list = [args.check_file]
|
||||
else:
|
||||
file_list = glob.glob(
|
||||
os.path.join(
|
||||
os.getcwd(),
|
||||
"app",
|
||||
"core",
|
||||
"src",
|
||||
"main",
|
||||
"resources",
|
||||
"messages_*.properties",
|
||||
)
|
||||
)
|
||||
update_missing_keys(args.reference_file, file_list)
|
||||
else:
|
||||
check_for_differences(args.reference_file, file_list, args.branch, args.actor)
|
||||
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Author: Ludy87
|
||||
Description: This script processes JSON translation files for localization checks. It compares translation files in a branch with
|
||||
Description: This script processes TOML translation files for localization checks. It compares translation files in a branch with
|
||||
a reference file to ensure consistency. The script performs two main checks:
|
||||
1. Verifies that the number of translation keys in the translation files matches the reference file.
|
||||
2. Ensures that all keys in the translation files are present in the reference file and vice versa.
|
||||
@@ -9,10 +9,10 @@ The script also provides functionality to update the translation files to match
|
||||
adjusting the format.
|
||||
|
||||
Usage:
|
||||
python check_language_json.py --reference-file <path_to_reference_file> --branch <branch_name> [--actor <actor_name>] [--files <list_of_changed_files>]
|
||||
python check_language_toml.py --reference-file <path_to_reference_file> --branch <branch_name> [--actor <actor_name>] [--files <list_of_changed_files>]
|
||||
"""
|
||||
# Sample for Windows:
|
||||
# python .github/scripts/check_language_json.py --reference-file frontend/public/locales/en-GB/translation.json --branch "" --files frontend/public/locales/de-DE/translation.json frontend/public/locales/fr-FR/translation.json
|
||||
# python .github/scripts/check_language_toml.py --reference-file frontend/public/locales/en-GB/translation.toml --branch "" --files frontend/public/locales/de-DE/translation.toml frontend/public/locales/fr-FR/translation.toml
|
||||
|
||||
import copy
|
||||
import glob
|
||||
@@ -20,12 +20,14 @@ import os
|
||||
import argparse
|
||||
import re
|
||||
import json
|
||||
import tomllib # Python 3.11+ (stdlib)
|
||||
import tomli_w # For writing TOML files
|
||||
|
||||
|
||||
def find_duplicate_keys(file_path, keys=None, prefix=""):
|
||||
"""
|
||||
Identifies duplicate keys in a JSON file (including nested keys).
|
||||
:param file_path: Path to the JSON file.
|
||||
Identifies duplicate keys in a TOML file (including nested keys).
|
||||
:param file_path: Path to the TOML file.
|
||||
:param keys: Dictionary to track keys (used for recursion).
|
||||
:param prefix: Prefix for nested keys.
|
||||
:return: List of tuples (key, first_occurrence_path, duplicate_path).
|
||||
@@ -35,8 +37,9 @@ def find_duplicate_keys(file_path, keys=None, prefix=""):
|
||||
|
||||
duplicates = []
|
||||
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
data = json.load(file)
|
||||
# Load TOML file
|
||||
with open(file_path, 'rb') as file:
|
||||
data = tomllib.load(file)
|
||||
|
||||
def process_dict(obj, current_prefix=""):
|
||||
for key, value in obj.items():
|
||||
@@ -54,18 +57,18 @@ def find_duplicate_keys(file_path, keys=None, prefix=""):
|
||||
return duplicates
|
||||
|
||||
|
||||
# Maximum size for JSON files (e.g., 500 KB)
|
||||
# Maximum size for TOML files (e.g., 500 KB)
|
||||
MAX_FILE_SIZE = 500 * 1024
|
||||
|
||||
|
||||
def parse_json_file(file_path):
|
||||
def parse_toml_file(file_path):
|
||||
"""
|
||||
Parses a JSON translation file and returns a flat dictionary of all keys.
|
||||
:param file_path: Path to the JSON file.
|
||||
Parses a TOML translation file and returns a flat dictionary of all keys.
|
||||
:param file_path: Path to the TOML file.
|
||||
:return: Dictionary with flattened keys.
|
||||
"""
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
data = json.load(file)
|
||||
with open(file_path, 'rb') as file:
|
||||
data = tomllib.load(file)
|
||||
|
||||
def flatten_dict(d, parent_key="", sep="."):
|
||||
items = {}
|
||||
@@ -99,38 +102,37 @@ def unflatten_dict(d, sep="."):
|
||||
return result
|
||||
|
||||
|
||||
def write_json_file(file_path, updated_properties):
|
||||
def write_toml_file(file_path, updated_properties):
|
||||
"""
|
||||
Writes updated properties back to the JSON file.
|
||||
:param file_path: Path to the JSON file.
|
||||
Writes updated properties back to the TOML file.
|
||||
:param file_path: Path to the TOML file.
|
||||
:param updated_properties: Dictionary of updated properties to write.
|
||||
"""
|
||||
nested_data = unflatten_dict(updated_properties)
|
||||
|
||||
with open(file_path, "w", encoding="utf-8", newline="\n") as file:
|
||||
json.dump(nested_data, file, ensure_ascii=False, indent=2)
|
||||
file.write("\n") # Add trailing newline
|
||||
with open(file_path, "wb") as file:
|
||||
tomli_w.dump(nested_data, file)
|
||||
|
||||
|
||||
def update_missing_keys(reference_file, file_list, branch=""):
|
||||
"""
|
||||
Updates missing keys in the translation files based on the reference file.
|
||||
:param reference_file: Path to the reference JSON file.
|
||||
:param reference_file: Path to the reference TOML file.
|
||||
:param file_list: List of translation files to update.
|
||||
:param branch: Branch where the files are located.
|
||||
"""
|
||||
reference_properties = parse_json_file(reference_file)
|
||||
reference_properties = parse_toml_file(reference_file)
|
||||
|
||||
for file_path in file_list:
|
||||
basename_current_file = os.path.basename(os.path.join(branch, file_path))
|
||||
if (
|
||||
basename_current_file == os.path.basename(reference_file)
|
||||
or not file_path.endswith(".json")
|
||||
or not file_path.endswith(".toml")
|
||||
or not os.path.dirname(file_path).endswith("locales")
|
||||
):
|
||||
continue
|
||||
|
||||
current_properties = parse_json_file(os.path.join(branch, file_path))
|
||||
current_properties = parse_toml_file(os.path.join(branch, file_path))
|
||||
updated_properties = {}
|
||||
|
||||
for ref_key, ref_value in reference_properties.items():
|
||||
@@ -141,16 +143,16 @@ def update_missing_keys(reference_file, file_list, branch=""):
|
||||
# Add missing key with reference value
|
||||
updated_properties[ref_key] = ref_value
|
||||
|
||||
write_json_file(os.path.join(branch, file_path), updated_properties)
|
||||
write_toml_file(os.path.join(branch, file_path), updated_properties)
|
||||
|
||||
|
||||
def check_for_missing_keys(reference_file, file_list, branch):
|
||||
update_missing_keys(reference_file, file_list, branch)
|
||||
|
||||
|
||||
def read_json_keys(file_path):
|
||||
def read_toml_keys(file_path):
|
||||
if os.path.isfile(file_path) and os.path.exists(file_path):
|
||||
return parse_json_file(file_path)
|
||||
return parse_toml_file(file_path)
|
||||
return {}
|
||||
|
||||
|
||||
@@ -160,7 +162,7 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
||||
|
||||
report = []
|
||||
report.append(f"#### 🔄 Reference Branch: `{reference_branch}`")
|
||||
reference_keys = read_json_keys(reference_file)
|
||||
reference_keys = read_toml_keys(reference_file)
|
||||
has_differences = False
|
||||
|
||||
only_reference_file = True
|
||||
@@ -197,12 +199,12 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
||||
):
|
||||
continue
|
||||
|
||||
if not file_normpath.endswith(".json") or basename_current_file != "translation.json":
|
||||
if not file_normpath.endswith(".toml") or basename_current_file != "translation.toml":
|
||||
continue
|
||||
|
||||
only_reference_file = False
|
||||
report.append(f"#### 📃 **File Check:** `{locale_dir}/{basename_current_file}`")
|
||||
current_keys = read_json_keys(os.path.join(branch, file_path))
|
||||
current_keys = read_toml_keys(os.path.join(branch, file_path))
|
||||
reference_key_count = len(reference_keys)
|
||||
current_key_count = len(current_keys)
|
||||
|
||||
@@ -272,7 +274,7 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
||||
report.append("## ❌ Overall Check Status: **_Failed_**")
|
||||
report.append("")
|
||||
report.append(
|
||||
f"@{actor} please check your translation if it conforms to the standard. Follow the format of [en-GB/translation.json](https://github.com/Stirling-Tools/Stirling-PDF/blob/V2/frontend/public/locales/en-GB/translation.json)"
|
||||
f"@{actor} please check your translation if it conforms to the standard. Follow the format of [en-GB/translation.toml](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/frontend/public/locales/en-GB/translation.toml)"
|
||||
)
|
||||
else:
|
||||
report.append("## ✅ Overall Check Status: **_Success_**")
|
||||
@@ -286,7 +288,7 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Find missing keys")
|
||||
parser = argparse.ArgumentParser(description="Find missing keys in TOML translation files")
|
||||
parser.add_argument(
|
||||
"--actor",
|
||||
required=False,
|
||||
@@ -337,9 +339,9 @@ if __name__ == "__main__":
|
||||
"public",
|
||||
"locales",
|
||||
"*",
|
||||
"translation.json",
|
||||
"translation.toml",
|
||||
)
|
||||
)
|
||||
update_missing_keys(args.reference_file, file_list)
|
||||
else:
|
||||
check_for_differences(args.reference_file, file_list, args.branch, args.actor)
|
||||
check_for_differences(args.reference_file, file_list, args.branch, args.actor)
|
||||
@@ -14,6 +14,7 @@ jobs:
|
||||
permissions:
|
||||
issues: write
|
||||
if: |
|
||||
vars.CI_PROFILE != 'lite' &&
|
||||
github.event.issue.pull_request &&
|
||||
(
|
||||
contains(github.event.comment.body, 'prdeploy') ||
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
name: Check Properties Files on PR
|
||||
name: Check TOML Translation Files on PR
|
||||
|
||||
# This workflow validates TOML translation files
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- "app/core/src/main/resources/messages_*.properties"
|
||||
- "frontend/public/locales/*/translation.toml"
|
||||
|
||||
# cancel in-progress jobs if a new job is triggered
|
||||
# This is useful to avoid running multiple builds for the same branch if a new commit is pushed
|
||||
# or a pull request is updated.
|
||||
# It helps to save resources and time by ensuring that only the latest commit is built and tested
|
||||
# This is particularly useful for long-running jobs that may take a while to complete.
|
||||
# The `group` is set to a combination of the workflow name, event name, and branch name.
|
||||
# This ensures that jobs are grouped by the workflow and branch, allowing for cancellation of
|
||||
# in-progress jobs when a new commit is pushed to the same branch or a new pull request is opened.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref_name || github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -73,22 +68,22 @@ jobs:
|
||||
run: |
|
||||
echo "Fetching PR changed files..."
|
||||
echo "Getting list of changed files from PR..."
|
||||
# Check if PR number exists
|
||||
if [ -z "${{ steps.get-pr-data.outputs.pr_number }}" ]; then
|
||||
echo "Error: PR number is empty"
|
||||
exit 1
|
||||
fi
|
||||
# Get changed files and filter for properties files, handle case where no matches are found
|
||||
gh pr view ${{ steps.get-pr-data.outputs.pr_number }} --json files -q ".files[].path" | grep -E '^app/core/src/main/resources/messages_[a-zA-Z_]{2}_[a-zA-Z_]{2,7}\.properties$' > changed_files.txt || echo "No matching properties files found in PR"
|
||||
# Check if any files were found
|
||||
if [ ! -s changed_files.txt ]; then
|
||||
echo "No properties files changed in this PR"
|
||||
echo "Workflow will exit early as no relevant files to check"
|
||||
exit 0
|
||||
fi
|
||||
echo "Found $(wc -l < changed_files.txt) matching properties files"
|
||||
# Check if PR number exists
|
||||
if [ -z "${{ steps.get-pr-data.outputs.pr_number }}" ]; then
|
||||
echo "Error: PR number is empty"
|
||||
exit 1
|
||||
fi
|
||||
# Get changed files and filter for TOML translation files
|
||||
gh pr view ${{ steps.get-pr-data.outputs.pr_number }} --json files -q ".files[].path" | grep -E '^frontend/public/locales/[a-zA-Z-]+/translation\.toml$' > changed_files.txt || echo "No matching TOML files found in PR"
|
||||
# Check if any files were found
|
||||
if [ ! -s changed_files.txt ]; then
|
||||
echo "No TOML translation files changed in this PR"
|
||||
echo "Workflow will exit early as no relevant files to check"
|
||||
exit 0
|
||||
fi
|
||||
echo "Found $(wc -l < changed_files.txt) matching TOML files"
|
||||
|
||||
- name: Determine reference file test
|
||||
- name: Determine reference file
|
||||
id: determine-file
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
@@ -125,11 +120,11 @@ jobs:
|
||||
pull_number: prNumber,
|
||||
});
|
||||
|
||||
// Filter for relevant files based on the PR changes
|
||||
// Filter for relevant TOML files based on the PR changes
|
||||
const changedFiles = files
|
||||
.filter(file =>
|
||||
file.status !== "removed" &&
|
||||
/^app\/core\/src\/main\/resources\/messages_[a-zA-Z_]{2}_[a-zA-Z_]{2,7}\.properties$/.test(file.filename)
|
||||
/^frontend\/public\/locales\/[a-zA-Z-]+\/translation\.toml$/.test(file.filename)
|
||||
)
|
||||
.map(file => file.filename);
|
||||
|
||||
@@ -169,16 +164,16 @@ jobs:
|
||||
|
||||
// Determine reference file
|
||||
let referenceFilePath;
|
||||
if (changedFiles.includes("app/core/src/main/resources/messages_en_GB.properties")) {
|
||||
if (changedFiles.includes("frontend/public/locales/en-GB/translation.toml")) {
|
||||
console.log("Using PR branch reference file.");
|
||||
const { data: fileContent } = await github.rest.repos.getContent({
|
||||
owner: prRepoOwner,
|
||||
repo: prRepoName,
|
||||
path: "app/core/src/main/resources/messages_en_GB.properties",
|
||||
path: "frontend/public/locales/en-GB/translation.toml",
|
||||
ref: branch,
|
||||
});
|
||||
|
||||
referenceFilePath = "pr-branch-messages_en_GB.properties";
|
||||
referenceFilePath = "pr-branch-translation-en-GB.toml";
|
||||
const content = Buffer.from(fileContent.content, "base64").toString("utf-8");
|
||||
fs.writeFileSync(referenceFilePath, content);
|
||||
} else {
|
||||
@@ -186,11 +181,11 @@ jobs:
|
||||
const { data: fileContent } = await github.rest.repos.getContent({
|
||||
owner: repoOwner,
|
||||
repo: repoName,
|
||||
path: "app/core/src/main/resources/messages_en_GB.properties",
|
||||
path: "frontend/public/locales/en-GB/translation.toml",
|
||||
ref: "main",
|
||||
});
|
||||
|
||||
referenceFilePath = "main-branch-messages_en_GB.properties";
|
||||
referenceFilePath = "main-branch-translation-en-GB.toml";
|
||||
const content = Buffer.from(fileContent.content, "base64").toString("utf-8");
|
||||
fs.writeFileSync(referenceFilePath, content);
|
||||
}
|
||||
@@ -198,11 +193,20 @@ jobs:
|
||||
console.log(`Reference file path: ${referenceFilePath}`);
|
||||
core.exportVariable("REFERENCE_FILE", referenceFilePath);
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
pip install tomli-w
|
||||
|
||||
- name: Run Python script to check files
|
||||
id: run-check
|
||||
run: |
|
||||
echo "Running Python script to check files..."
|
||||
python .github/scripts/check_language_properties.py \
|
||||
echo "Running Python script to check TOML files..."
|
||||
python .github/scripts/check_language_toml.py \
|
||||
--actor ${{ github.event.pull_request.user.login }} \
|
||||
--reference-file "${REFERENCE_FILE}" \
|
||||
--branch "pr-branch" \
|
||||
@@ -213,7 +217,7 @@ jobs:
|
||||
id: capture-output
|
||||
run: |
|
||||
if [ -f result.txt ] && [ -s result.txt ]; then
|
||||
echo "Test, capturing output..."
|
||||
echo "Capturing output..."
|
||||
SCRIPT_OUTPUT=$(cat result.txt)
|
||||
echo "SCRIPT_OUTPUT<<EOF" >> $GITHUB_ENV
|
||||
echo "$SCRIPT_OUTPUT" >> $GITHUB_ENV
|
||||
@@ -227,7 +231,7 @@ jobs:
|
||||
echo "FAIL_JOB=false" >> $GITHUB_ENV
|
||||
fi
|
||||
else
|
||||
echo "No update found."
|
||||
echo "No output found."
|
||||
echo "SCRIPT_OUTPUT=" >> $GITHUB_ENV
|
||||
echo "FAIL_JOB=false" >> $GITHUB_ENV
|
||||
fi
|
||||
@@ -249,7 +253,7 @@ jobs:
|
||||
issue_number: issueNumber
|
||||
});
|
||||
|
||||
const comment = comments.data.find(c => c.body.includes("## 🚀 Translation Verification Summary"));
|
||||
const comment = comments.data.find(c => c.body.includes("## 🌐 TOML Translation Verification Summary"));
|
||||
|
||||
// Only update or create comments by the action user
|
||||
const expectedActor = "${{ steps.setup-bot.outputs.app-slug }}[bot]";
|
||||
@@ -260,7 +264,7 @@ jobs:
|
||||
owner: repoOwner,
|
||||
repo: repoName,
|
||||
comment_id: comment.id,
|
||||
body: `## 🚀 Translation Verification Summary\n\n\n${SCRIPT_OUTPUT}\n`
|
||||
body: `## 🌐 TOML Translation Verification Summary\n\n\n${SCRIPT_OUTPUT}\n`
|
||||
});
|
||||
console.log("Updated existing comment.");
|
||||
} else if (!comment) {
|
||||
@@ -269,7 +273,7 @@ jobs:
|
||||
owner: repoOwner,
|
||||
repo: repoName,
|
||||
issue_number: issueNumber,
|
||||
body: `## 🚀 Translation Verification Summary\n\n\n${SCRIPT_OUTPUT}\n`
|
||||
body: `## 🌐 TOML Translation Verification Summary\n\n\n${SCRIPT_OUTPUT}\n`
|
||||
});
|
||||
console.log("Created new comment.");
|
||||
} else {
|
||||
@@ -287,6 +291,6 @@ jobs:
|
||||
run: |
|
||||
echo "Cleaning up temporary files..."
|
||||
rm -rf pr-branch
|
||||
rm -f pr-branch-messages_en_GB.properties main-branch-messages_en_GB.properties changed_files.txt result.txt
|
||||
rm -f pr-branch-translation-en-GB.toml main-branch-translation-en-GB.toml changed_files.txt result.txt
|
||||
echo "Cleanup complete."
|
||||
continue-on-error: true # Ensure cleanup runs even if previous steps fail
|
||||
@@ -31,6 +31,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
determine-matrix:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
|
||||
@@ -24,6 +24,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
push:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-24.04-8core
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
@@ -24,6 +24,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
push:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
@@ -17,6 +17,7 @@ permissions: read-all
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
name: Scorecard analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
@@ -27,6 +27,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
sonarqube:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
||||
@@ -10,6 +10,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
@@ -23,6 +23,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
push:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
name: Sync Files
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "build.gradle"
|
||||
- "README.md"
|
||||
- "app/core/src/main/resources/messages_*.properties"
|
||||
- "app/core/src/main/resources/static/3rdPartyLicenses.json"
|
||||
- "scripts/ignore_translation.toml"
|
||||
|
||||
# cancel in-progress jobs if a new job is triggered
|
||||
# This is useful to avoid running multiple builds for the same branch if a new commit is pushed
|
||||
# or a pull request is updated.
|
||||
# It helps to save resources and time by ensuring that only the latest commit is built and tested
|
||||
# This is particularly useful for long-running jobs that may take a while to complete.
|
||||
# The `group` is set to a combination of the workflow name, event name, and branch name.
|
||||
# This ensures that jobs are grouped by the workflow and branch, allowing for cancellation of
|
||||
# in-progress jobs when a new commit is pushed to the same branch or a new pull request is opened.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
sync-files:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
# Prevents sdist builds → no tar extraction
|
||||
PIP_ONLY_BINARY: ":all:"
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- name: Setup GitHub App Bot
|
||||
id: setup-bot
|
||||
uses: ./.github/actions/setup-bot
|
||||
with:
|
||||
app-id: ${{ secrets.GH_APP_ID }}
|
||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: "pip" # caching pip dependencies
|
||||
|
||||
- name: Sync translation property files
|
||||
run: |
|
||||
python .github/scripts/check_language_properties.py --reference-file "app/core/src/main/resources/messages_en_GB.properties" --branch main
|
||||
|
||||
- name: Commit translation files
|
||||
run: |
|
||||
git add app/core/src/main/resources/messages_*.properties
|
||||
git diff --staged --quiet || git commit -m ":memo: Sync translation files" || echo "No changes detected"
|
||||
|
||||
- name: Install dependencies
|
||||
# Wheels-only + Hash-Pinning
|
||||
run: |
|
||||
pip install --require-hashes --only-binary=:all: -r ./.github/scripts/requirements_sync_readme.txt
|
||||
|
||||
- name: Sync README.md
|
||||
run: |
|
||||
python scripts/counter_translation.py
|
||||
|
||||
- name: Run git add
|
||||
run: |
|
||||
git add README.md scripts/ignore_translation.toml
|
||||
git diff --staged --quiet || git commit -m ":memo: Sync README.md & scripts/ignore_translation.toml" || echo "No changes detected"
|
||||
|
||||
- name: Create Pull Request
|
||||
if: always()
|
||||
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
||||
with:
|
||||
token: ${{ steps.setup-bot.outputs.token }}
|
||||
commit-message: Update files
|
||||
committer: ${{ steps.setup-bot.outputs.committer }}
|
||||
author: ${{ steps.setup-bot.outputs.committer }}
|
||||
signoff: true
|
||||
branch: sync_readme
|
||||
title: ":globe_with_meridians: Sync Translations + Update README Progress Table"
|
||||
body: |
|
||||
### Description of Changes
|
||||
|
||||
This Pull Request was automatically generated to synchronize updates to translation files and documentation. Below are the details of the changes made:
|
||||
|
||||
#### **1. Synchronization of Translation Files**
|
||||
- Updated translation files (`messages_*.properties`) to reflect changes in the reference file `messages_en_GB.properties`.
|
||||
- Ensured consistency and synchronization across all supported language files.
|
||||
- Highlighted any missing or incomplete translations.
|
||||
|
||||
#### **2. Update README.md**
|
||||
- Generated the translation progress table in `README.md`.
|
||||
- Added a summary of the current translation status for all supported languages.
|
||||
- Included up-to-date statistics on translation coverage.
|
||||
|
||||
#### **Why these changes are necessary**
|
||||
- Keeps translation files aligned with the latest reference updates.
|
||||
- Ensures the documentation reflects the current translation progress.
|
||||
|
||||
---
|
||||
|
||||
Auto-generated by [create-pull-request][1].
|
||||
|
||||
[1]: https://github.com/peter-evans/create-pull-request
|
||||
draft: false
|
||||
delete-branch: true
|
||||
labels: github-actions
|
||||
sign-commits: true
|
||||
add-paths: |
|
||||
README.md
|
||||
app/core/src/main/resources/messages_*.properties
|
||||
@@ -1,15 +1,15 @@
|
||||
name: Sync Files V2
|
||||
name: Sync Files (TOML)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- V2
|
||||
- main
|
||||
- syncLangTest
|
||||
paths:
|
||||
- "build.gradle"
|
||||
- "README.md"
|
||||
- "frontend/public/locales/*/translation.json"
|
||||
- "frontend/public/locales/*/translation.toml"
|
||||
- "app/core/src/main/resources/static/3rdPartyLicenses.json"
|
||||
- "scripts/ignore_translation.toml"
|
||||
|
||||
@@ -52,21 +52,25 @@ jobs:
|
||||
python-version: "3.12"
|
||||
cache: "pip" # caching pip dependencies
|
||||
|
||||
- name: Sync translation JSON files
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
python .github/scripts/check_language_json.py --reference-file "frontend/public/locales/en-GB/translation.json" --branch V2
|
||||
pip install tomli-w
|
||||
|
||||
- name: Sync translation TOML files
|
||||
run: |
|
||||
python .github/scripts/check_language_toml.py --reference-file "frontend/public/locales/en-GB/translation.toml" --branch main
|
||||
|
||||
- name: Commit translation files
|
||||
run: |
|
||||
git add frontend/public/locales/*/translation.json
|
||||
git diff --staged --quiet || git commit -m ":memo: Sync translation files" || echo "No changes detected"
|
||||
git add frontend/public/locales/*/translation.toml
|
||||
git diff --staged --quiet || git commit -m ":memo: Sync translation files (TOML)" || echo "No changes detected"
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install README dependencies
|
||||
run: pip install --require-hashes -r ./.github/scripts/requirements_sync_readme.txt
|
||||
|
||||
- name: Sync README.md
|
||||
run: |
|
||||
python scripts/counter_translation_v2.py
|
||||
python scripts/counter_translation_v3.py
|
||||
|
||||
- name: Run git add
|
||||
run: |
|
||||
@@ -82,21 +86,22 @@ jobs:
|
||||
committer: ${{ steps.setup-bot.outputs.committer }}
|
||||
author: ${{ steps.setup-bot.outputs.committer }}
|
||||
signoff: true
|
||||
branch: sync_readme_v2
|
||||
base: V2
|
||||
title: ":globe_with_meridians: [V2] Sync Translations + Update README Progress Table"
|
||||
branch: sync_readme_v3
|
||||
base: main
|
||||
title: ":globe_with_meridians: Sync Translations + Update README Progress Table"
|
||||
body: |
|
||||
### Description of Changes
|
||||
|
||||
This Pull Request was automatically generated to synchronize updates to translation files and documentation for the **V2 branch**. Below are the details of the changes made:
|
||||
This Pull Request was automatically generated to synchronize updates to translation files and documentation. Below are the details of the changes made:
|
||||
|
||||
#### **1. Synchronization of Translation Files**
|
||||
- Updated translation files (`frontend/public/locales/*/translation.json`) to reflect changes in the reference file `en-GB/translation.json`.
|
||||
- Updated translation files (`frontend/public/locales/*/translation.toml`) to reflect changes in the reference file `en-GB/translation.toml`.
|
||||
- Ensured consistency and synchronization across all supported language files.
|
||||
- Highlighted any missing or incomplete translations.
|
||||
- **Format**: TOML
|
||||
|
||||
#### **2. Update README.md**
|
||||
- Generated the translation progress table in `README.md`.
|
||||
- Generated the translation progress table in `README.md` using `counter_translation_v3.py`.
|
||||
- Added a summary of the current translation status for all supported languages.
|
||||
- Included up-to-date statistics on translation coverage.
|
||||
|
||||
@@ -115,4 +120,5 @@ jobs:
|
||||
sign-commits: true
|
||||
add-paths: |
|
||||
README.md
|
||||
frontend/public/locales/*/translation.json
|
||||
frontend/public/locales/*/translation.toml
|
||||
scripts/ignore_translation.toml
|
||||
@@ -28,6 +28,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
determine-matrix:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
@@ -636,6 +637,8 @@ jobs:
|
||||
if [ "${{ needs.build.result }}" = "success" ]; then
|
||||
echo "✅ All Tauri builds completed successfully!"
|
||||
echo "Artifacts are ready for distribution."
|
||||
elif [ "${{ needs.build.result }}" = "skipped" ]; then
|
||||
echo "⏭️ Tauri builds skipped (CI lite mode enabled)"
|
||||
else
|
||||
echo "❌ Some Tauri builds failed."
|
||||
echo "Please check the logs and fix any issues."
|
||||
|
||||
@@ -21,6 +21,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: ${{ vars.CI_PROFILE != 'lite' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
||||
+3
-3
@@ -202,10 +202,10 @@ const [ToolName] = (props: BaseToolProps) => {
|
||||
## 5. Add Translations
|
||||
Update translation files. **Important: Only update `en-GB` files** - other languages are handled separately.
|
||||
|
||||
**File to update:** `frontend/public/locales/en-GB/translation.json`
|
||||
**File to update:** `frontend/public/locales/en-GB/translation.toml`
|
||||
|
||||
**Required Translation Keys**:
|
||||
```json
|
||||
```toml
|
||||
{
|
||||
"home": {
|
||||
"[toolName]": {
|
||||
@@ -251,7 +251,7 @@ Update translation files. **Important: Only update `en-GB` files** - other langu
|
||||
```
|
||||
|
||||
**Translation Notes:**
|
||||
- **Only update `en-GB/translation.json`** - other locale files are managed separately
|
||||
- **Only update `en-GB/translation.toml`** - other locale files are managed separately
|
||||
- Use descriptive keys that match your component's `t()` calls
|
||||
- Include tooltip translations if you created tooltip hooks
|
||||
- Add `options.*` keys if your tool has settings with descriptions
|
||||
|
||||
@@ -112,7 +112,6 @@ public class ApplicationProperties {
|
||||
@Data
|
||||
public static class Security {
|
||||
private Boolean enableLogin;
|
||||
private Boolean csrfDisabled;
|
||||
private InitialLogin initialLogin = new InitialLogin();
|
||||
private OAUTH2 oauth2 = new OAUTH2();
|
||||
private SAML2 saml2 = new SAML2();
|
||||
@@ -575,6 +574,16 @@ public class ApplicationProperties {
|
||||
private String username;
|
||||
@ToString.Exclude private String password;
|
||||
private String from;
|
||||
// STARTTLS upgrades a plain SMTP connection to TLS after connecting (RFC 3207)
|
||||
private Boolean startTlsEnable = true;
|
||||
private Boolean startTlsRequired;
|
||||
// SSL/TLS wrapper for implicit TLS (typically port 465)
|
||||
private Boolean sslEnable;
|
||||
// Hostnames or patterns (e.g., "smtp.example.com" or "*") to trust for TLS certificates;
|
||||
// defaults to "*" (trust all) when not set
|
||||
private String sslTrust;
|
||||
// Enables hostname verification for TLS connections
|
||||
private Boolean sslCheckServerIdentity;
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
@@ -254,10 +254,7 @@ public class PostHogService {
|
||||
properties,
|
||||
"security_enableLogin",
|
||||
applicationProperties.getSecurity().getEnableLogin());
|
||||
addIfNotEmpty(
|
||||
properties,
|
||||
"security_csrfDisabled",
|
||||
applicationProperties.getSecurity().getCsrfDisabled());
|
||||
addIfNotEmpty(properties, "security_csrfDisabled", true);
|
||||
addIfNotEmpty(
|
||||
properties,
|
||||
"security_loginAttemptCount",
|
||||
|
||||
@@ -162,10 +162,9 @@ public class RequestUriUtils {
|
||||
// enableLogin)
|
||||
|| trimmedUri.startsWith(
|
||||
"/api/v1/ui-data/footer-info") // Public footer configuration
|
||||
|| trimmedUri.startsWith("/v1/api-docs")
|
||||
|| trimmedUri.startsWith("/api/v1/invite/validate")
|
||||
|| trimmedUri.startsWith("/api/v1/invite/accept")
|
||||
|| trimmedUri.contains("/v1/api-docs");
|
||||
|| trimmedUri.startsWith("/v1/api-docs");
|
||||
}
|
||||
|
||||
private static String stripContextPath(String contextPath, String requestURI) {
|
||||
|
||||
@@ -34,7 +34,6 @@ public class InitialSetup {
|
||||
public void init() throws IOException {
|
||||
initUUIDKey();
|
||||
initSecretKey();
|
||||
initEnableCSRFSecurity();
|
||||
initLegalUrls();
|
||||
initSetAppVersion();
|
||||
GeneralUtils.extractPipeline();
|
||||
@@ -60,18 +59,6 @@ public class InitialSetup {
|
||||
}
|
||||
}
|
||||
|
||||
public void initEnableCSRFSecurity() throws IOException {
|
||||
if (GeneralUtils.isVersionHigher(
|
||||
"0.46.0", applicationProperties.getAutomaticallyGenerated().getAppVersion())) {
|
||||
Boolean csrf = applicationProperties.getSecurity().getCsrfDisabled();
|
||||
if (!csrf) {
|
||||
GeneralUtils.saveKeyToSettings("security.csrfDisabled", false);
|
||||
GeneralUtils.saveKeyToSettings("system.enableAnalytics", true);
|
||||
applicationProperties.getSecurity().setCsrfDisabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void initLegalUrls() throws IOException {
|
||||
// Initialize Terms and Conditions
|
||||
String termsUrl = applicationProperties.getLegal().getTermsAndConditions();
|
||||
@@ -95,7 +82,7 @@ public class InitialSetup {
|
||||
isNewServer =
|
||||
existingVersion == null
|
||||
|| existingVersion.isEmpty()
|
||||
|| existingVersion.equals("0.0.0");
|
||||
|| "0.0.0".equals(existingVersion);
|
||||
|
||||
String appVersion = "0.0.0";
|
||||
Resource resource = new ClassPathResource("version.properties");
|
||||
|
||||
@@ -62,10 +62,15 @@ public class OpenApiConfig {
|
||||
|
||||
// Add server configuration from environment variable
|
||||
String swaggerServerUrl = System.getenv("SWAGGER_SERVER_URL");
|
||||
Server server;
|
||||
if (swaggerServerUrl != null && !swaggerServerUrl.trim().isEmpty()) {
|
||||
Server server = new Server().url(swaggerServerUrl).description("API Server");
|
||||
openAPI.addServersItem(server);
|
||||
server = new Server().url(swaggerServerUrl).description("API Server");
|
||||
} else {
|
||||
// Use relative path so Swagger uses the current browser origin to avoid CORS issues
|
||||
// when accessing via different ports
|
||||
server = new Server().url("/").description("Current Server");
|
||||
}
|
||||
openAPI.addServersItem(server);
|
||||
|
||||
// Add ErrorResponse schema to components
|
||||
Schema<?> errorResponseSchema =
|
||||
|
||||
@@ -124,7 +124,6 @@ public class SettingsController {
|
||||
ApplicationProperties.Security security = applicationProperties.getSecurity();
|
||||
|
||||
settings.put("enableLogin", security.getEnableLogin());
|
||||
settings.put("csrfDisabled", security.getCsrfDisabled());
|
||||
settings.put("loginMethod", security.getLoginMethod());
|
||||
settings.put("loginAttemptCount", security.getLoginAttemptCount());
|
||||
settings.put("loginResetTimeMinutes", security.getLoginResetTimeMinutes());
|
||||
@@ -159,12 +158,6 @@ public class SettingsController {
|
||||
.getSecurity()
|
||||
.setEnableLogin((Boolean) settings.get("enableLogin"));
|
||||
}
|
||||
if (settings.containsKey("csrfDisabled")) {
|
||||
GeneralUtils.saveKeyToSettings("security.csrfDisabled", settings.get("csrfDisabled"));
|
||||
applicationProperties
|
||||
.getSecurity()
|
||||
.setCsrfDisabled((Boolean) settings.get("csrfDisabled"));
|
||||
}
|
||||
if (settings.containsKey("loginMethod")) {
|
||||
GeneralUtils.saveKeyToSettings("security.loginMethod", settings.get("loginMethod"));
|
||||
applicationProperties
|
||||
|
||||
-2
@@ -31,12 +31,10 @@ import stirling.software.common.model.api.PDFFile;
|
||||
import stirling.software.common.service.JobOwnershipService;
|
||||
import stirling.software.common.util.ExceptionUtils;
|
||||
import stirling.software.common.util.WebResponseUtils;
|
||||
import stirling.software.proprietary.security.config.PremiumEndpoint;
|
||||
|
||||
@Slf4j
|
||||
@ConvertApi
|
||||
@RequiredArgsConstructor
|
||||
@PremiumEndpoint
|
||||
public class ConvertPdfJsonController {
|
||||
|
||||
private final PdfJsonConversionService pdfJsonConversionService;
|
||||
+1
@@ -74,6 +74,7 @@ public class ConfigController {
|
||||
configData.put("appNameNavbar", applicationProperties.getUi().getAppNameNavbar());
|
||||
configData.put("languages", applicationProperties.getUi().getLanguages());
|
||||
configData.put("logoStyle", applicationProperties.getUi().getLogoStyle());
|
||||
configData.put("defaultLocale", applicationProperties.getSystem().getDefaultLocale());
|
||||
|
||||
// Security settings
|
||||
// enableLogin requires both the config flag AND proprietary features to be loaded
|
||||
|
||||
+6
-7
@@ -4,8 +4,6 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.http.MediaType;
|
||||
@@ -13,6 +11,7 @@ import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
@Controller
|
||||
@@ -63,9 +62,10 @@ public class ReactRoutingController {
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping(value = {"/", "/index.html"}, produces = MediaType.TEXT_HTML_VALUE)
|
||||
public ResponseEntity<String> serveIndexHtml(HttpServletRequest request)
|
||||
throws IOException {
|
||||
@GetMapping(
|
||||
value = {"/", "/index.html"},
|
||||
produces = MediaType.TEXT_HTML_VALUE)
|
||||
public ResponseEntity<String> serveIndexHtml(HttpServletRequest request) throws IOException {
|
||||
if (indexHtmlExists && cachedIndexHtml != null) {
|
||||
return ResponseEntity.ok().contentType(MediaType.TEXT_HTML).body(cachedIndexHtml);
|
||||
}
|
||||
@@ -75,8 +75,7 @@ public class ReactRoutingController {
|
||||
|
||||
@GetMapping(
|
||||
"/{path:^(?!api|static|robots\\.txt|favicon\\.ico|manifest.*\\.json|pipeline|pdfjs|pdfjs-legacy|fonts|images|files|css|js|assets|locales|modern-logo|classic-logo|Login|og_images|samples)[^\\.]*$}")
|
||||
public ResponseEntity<String> forwardRootPaths(HttpServletRequest request)
|
||||
throws IOException {
|
||||
public ResponseEntity<String> forwardRootPaths(HttpServletRequest request) throws IOException {
|
||||
return serveIndexHtml(request);
|
||||
}
|
||||
|
||||
|
||||
+64
-2
@@ -33,8 +33,12 @@ public class PdfJsonFallbackFontService {
|
||||
public static final String FALLBACK_FONT_CJK_ID = "fallback-noto-cjk";
|
||||
public static final String FALLBACK_FONT_JP_ID = "fallback-noto-jp";
|
||||
public static final String FALLBACK_FONT_KR_ID = "fallback-noto-korean";
|
||||
public static final String FALLBACK_FONT_TC_ID = "fallback-noto-tc";
|
||||
public static final String FALLBACK_FONT_AR_ID = "fallback-noto-arabic";
|
||||
public static final String FALLBACK_FONT_TH_ID = "fallback-noto-thai";
|
||||
public static final String FALLBACK_FONT_DEVANAGARI_ID = "fallback-noto-devanagari";
|
||||
public static final String FALLBACK_FONT_MALAYALAM_ID = "fallback-noto-malayalam";
|
||||
public static final String FALLBACK_FONT_TIBETAN_ID = "fallback-noto-tibetan";
|
||||
|
||||
// Font name aliases map PDF font names to available fallback fonts
|
||||
// This provides better visual consistency when editing PDFs
|
||||
@@ -59,6 +63,22 @@ public class PdfJsonFallbackFontService {
|
||||
Map.entry("dejavuserif", "fallback-dejavu-serif"),
|
||||
Map.entry("dejavumono", "fallback-dejavu-mono"),
|
||||
Map.entry("dejavusansmono", "fallback-dejavu-mono"),
|
||||
// Traditional Chinese fonts (Taiwan, Hong Kong, Macau)
|
||||
Map.entry("mingliu", "fallback-noto-tc"),
|
||||
Map.entry("pmingliu", "fallback-noto-tc"),
|
||||
Map.entry("microsoftjhenghei", "fallback-noto-tc"),
|
||||
Map.entry("jhenghei", "fallback-noto-tc"),
|
||||
Map.entry("kaiti", "fallback-noto-tc"),
|
||||
Map.entry("kaiu", "fallback-noto-tc"),
|
||||
Map.entry("dfkaib5", "fallback-noto-tc"),
|
||||
Map.entry("dfkai", "fallback-noto-tc"),
|
||||
// Simplified Chinese fonts (Mainland China) - more common
|
||||
Map.entry("simsun", "fallback-noto-cjk"),
|
||||
Map.entry("simhei", "fallback-noto-cjk"),
|
||||
Map.entry("microsoftyahei", "fallback-noto-cjk"),
|
||||
Map.entry("yahei", "fallback-noto-cjk"),
|
||||
Map.entry("songti", "fallback-noto-cjk"),
|
||||
Map.entry("heiti", "fallback-noto-cjk"),
|
||||
// Noto Sans - Google's universal font (use as last resort generic fallback)
|
||||
Map.entry("noto", "fallback-noto-sans"),
|
||||
Map.entry("notosans", "fallback-noto-sans"));
|
||||
@@ -83,6 +103,12 @@ public class PdfJsonFallbackFontService {
|
||||
"classpath:/static/fonts/NotoSansKR-Regular.ttf",
|
||||
"NotoSansKR-Regular",
|
||||
"ttf")),
|
||||
Map.entry(
|
||||
FALLBACK_FONT_TC_ID,
|
||||
new FallbackFontSpec(
|
||||
"classpath:/static/fonts/NotoSansTC-Regular.ttf",
|
||||
"NotoSansTC-Regular",
|
||||
"ttf")),
|
||||
Map.entry(
|
||||
FALLBACK_FONT_AR_ID,
|
||||
new FallbackFontSpec(
|
||||
@@ -95,6 +121,24 @@ public class PdfJsonFallbackFontService {
|
||||
"classpath:/static/fonts/NotoSansThai-Regular.ttf",
|
||||
"NotoSansThai-Regular",
|
||||
"ttf")),
|
||||
Map.entry(
|
||||
FALLBACK_FONT_DEVANAGARI_ID,
|
||||
new FallbackFontSpec(
|
||||
"classpath:/static/fonts/NotoSansDevanagari-Regular.ttf",
|
||||
"NotoSansDevanagari-Regular",
|
||||
"ttf")),
|
||||
Map.entry(
|
||||
FALLBACK_FONT_MALAYALAM_ID,
|
||||
new FallbackFontSpec(
|
||||
"classpath:/static/fonts/NotoSansMalayalam-Regular.ttf",
|
||||
"NotoSansMalayalam-Regular",
|
||||
"ttf")),
|
||||
Map.entry(
|
||||
FALLBACK_FONT_TIBETAN_ID,
|
||||
new FallbackFontSpec(
|
||||
"classpath:/static/fonts/NotoSerifTibetan-Regular.ttf",
|
||||
"NotoSerifTibetan-Regular",
|
||||
"ttf")),
|
||||
// Liberation Sans family
|
||||
Map.entry(
|
||||
"fallback-liberation-sans",
|
||||
@@ -484,6 +528,20 @@ public class PdfJsonFallbackFontService {
|
||||
*/
|
||||
public String resolveFallbackFontId(int codePoint) {
|
||||
Character.UnicodeBlock block = Character.UnicodeBlock.of(codePoint);
|
||||
|
||||
// Bopomofo is primarily used in Taiwan for Traditional Chinese phonetic annotation
|
||||
if (block == Character.UnicodeBlock.BOPOMOFO
|
||||
|| block == Character.UnicodeBlock.BOPOMOFO_EXTENDED) {
|
||||
return FALLBACK_FONT_TC_ID;
|
||||
}
|
||||
|
||||
// Compatibility ideographs are primarily used by Traditional Chinese encodings (e.g., Big5,
|
||||
// HKSCS) so prefer the Traditional Chinese fallback here.
|
||||
if (block == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS
|
||||
|| block == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT) {
|
||||
return FALLBACK_FONT_TC_ID;
|
||||
}
|
||||
|
||||
if (block == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS
|
||||
|| block == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
|
||||
|| block == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B
|
||||
@@ -492,19 +550,23 @@ public class PdfJsonFallbackFontService {
|
||||
|| block == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E
|
||||
|| block == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F
|
||||
|| block == Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION
|
||||
|| block == Character.UnicodeBlock.BOPOMOFO
|
||||
|| block == Character.UnicodeBlock.BOPOMOFO_EXTENDED
|
||||
|| block == Character.UnicodeBlock.HALFWIDTH_AND_FULLWIDTH_FORMS) {
|
||||
return FALLBACK_FONT_CJK_ID;
|
||||
}
|
||||
|
||||
Character.UnicodeScript script = Character.UnicodeScript.of(codePoint);
|
||||
return switch (script) {
|
||||
// HAN script is used by both Simplified and Traditional Chinese
|
||||
// Default to Simplified (mainland China, 1.4B speakers) as it's more common
|
||||
// Traditional Chinese PDFs are detected via font name aliases (MingLiU, PMingLiU, etc.)
|
||||
case HAN -> FALLBACK_FONT_CJK_ID;
|
||||
case HIRAGANA, KATAKANA -> FALLBACK_FONT_JP_ID;
|
||||
case HANGUL -> FALLBACK_FONT_KR_ID;
|
||||
case ARABIC -> FALLBACK_FONT_AR_ID;
|
||||
case THAI -> FALLBACK_FONT_TH_ID;
|
||||
case DEVANAGARI -> FALLBACK_FONT_DEVANAGARI_ID;
|
||||
case MALAYALAM -> FALLBACK_FONT_MALAYALAM_ID;
|
||||
case TIBETAN -> FALLBACK_FONT_TIBETAN_ID;
|
||||
default -> FALLBACK_FONT_ID;
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
security:
|
||||
enableLogin: true # set to 'true' to enable login
|
||||
csrfDisabled: false # set to 'true' to disable CSRF protection (not recommended for production)
|
||||
loginAttemptCount: 5 # lock user account after 5 tries; when using e.g. Fail2Ban you can deactivate the function with -1
|
||||
loginResetTimeMinutes: 120 # lock account for 2 hours after x attempts
|
||||
loginMethod: all # Accepts values like 'all' and 'normal'(only Login with Username/Password), 'oauth2'(only Login with OAuth2) or 'saml2'(only Login with SAML2)
|
||||
@@ -105,6 +104,11 @@ mail:
|
||||
username: '' # SMTP server username
|
||||
password: '' # SMTP server password
|
||||
from: '' # sender email address
|
||||
startTlsEnable: true # enable STARTTLS (explicit TLS upgrade after connecting) when supported by the SMTP server
|
||||
startTlsRequired: false # require STARTTLS; connection fails if the upgrade command is not supported
|
||||
sslEnable: false # enable SSL/TLS wrapper for implicit TLS (typically used with port 465)
|
||||
sslTrust: '' # optional trusted host override, e.g. "smtp.example.com" or "*"; defaults to "*" (trust all) when empty
|
||||
sslCheckServerIdentity: false # enable hostname verification when using SSL/TLS
|
||||
|
||||
legal:
|
||||
termsAndConditions: https://www.stirling.com/legal/terms-of-service # URL to the terms and conditions of your application (e.g. https://example.com/terms). Empty string to disable or filename to load from local file in static folder
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9
-1
@@ -205,6 +205,10 @@ public class ProprietaryUIDataController {
|
||||
data.setLoginMethod(securityProps.getLoginMethod());
|
||||
data.setAltLogin(!providerList.isEmpty() && securityProps.isAltLogin());
|
||||
|
||||
// Add language configuration for login page
|
||||
data.setLanguages(applicationProperties.getUi().getLanguages());
|
||||
data.setDefaultLocale(applicationProperties.getSystem().getDefaultLocale());
|
||||
|
||||
return ResponseEntity.ok(data);
|
||||
}
|
||||
|
||||
@@ -328,6 +332,7 @@ public class ProprietaryUIDataController {
|
||||
data.setGrandfatheredUserCount(grandfatheredCount);
|
||||
data.setLicenseMaxUsers(licenseMaxUsers);
|
||||
data.setPremiumEnabled(premiumEnabled);
|
||||
data.setMailEnabled(applicationProperties.getMail().isEnabled());
|
||||
|
||||
return ResponseEntity.ok(data);
|
||||
}
|
||||
@@ -376,7 +381,7 @@ public class ProprietaryUIDataController {
|
||||
data.setUsername(username);
|
||||
data.setRole(user.get().getRolesAsString());
|
||||
data.setSettings(settingsJson);
|
||||
data.setChangeCredsFlag(user.get().isFirstLogin());
|
||||
data.setChangeCredsFlag(user.get().isFirstLogin() || user.get().isForcePasswordChange());
|
||||
data.setOAuth2Login(isOAuth2Login);
|
||||
data.setSaml2Login(isSaml2Login);
|
||||
|
||||
@@ -491,6 +496,8 @@ public class ProprietaryUIDataController {
|
||||
private boolean altLogin;
|
||||
private boolean firstTimeSetup;
|
||||
private boolean showDefaultCredentials;
|
||||
private List<String> languages;
|
||||
private String defaultLocale;
|
||||
}
|
||||
|
||||
@Data
|
||||
@@ -510,6 +517,7 @@ public class ProprietaryUIDataController {
|
||||
private int grandfatheredUserCount;
|
||||
private int licenseMaxUsers;
|
||||
private boolean premiumEnabled;
|
||||
private boolean mailEnabled;
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
+27
-2
@@ -33,7 +33,8 @@ public class MailConfig {
|
||||
|
||||
// Creates a new instance of JavaMailSenderImpl, which is a Spring implementation
|
||||
JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
|
||||
mailSender.setHost(mailProperties.getHost());
|
||||
String host = mailProperties.getHost();
|
||||
mailSender.setHost(host);
|
||||
mailSender.setPort(mailProperties.getPort());
|
||||
mailSender.setDefaultEncoding("UTF-8");
|
||||
|
||||
@@ -70,8 +71,32 @@ public class MailConfig {
|
||||
log.info("SMTP authentication disabled - no credentials provided");
|
||||
}
|
||||
|
||||
boolean startTlsEnabled =
|
||||
mailProperties.getStartTlsEnable() == null || mailProperties.getStartTlsEnable();
|
||||
// Enables STARTTLS to encrypt the connection if supported by the SMTP server
|
||||
props.put("mail.smtp.starttls.enable", "true");
|
||||
props.put("mail.smtp.starttls.enable", Boolean.toString(startTlsEnabled));
|
||||
if (mailProperties.getStartTlsRequired() != null) {
|
||||
props.put(
|
||||
"mail.smtp.starttls.required", mailProperties.getStartTlsRequired().toString());
|
||||
}
|
||||
|
||||
if (mailProperties.getSslEnable() != null) {
|
||||
props.put("mail.smtp.ssl.enable", mailProperties.getSslEnable().toString());
|
||||
}
|
||||
|
||||
// Trust the configured host to allow STARTTLS with self-signed certificates
|
||||
String sslTrust = mailProperties.getSslTrust();
|
||||
if (sslTrust == null || sslTrust.trim().isEmpty()) {
|
||||
sslTrust = "*";
|
||||
}
|
||||
if (sslTrust != null && !sslTrust.trim().isEmpty()) {
|
||||
props.put("mail.smtp.ssl.trust", sslTrust);
|
||||
}
|
||||
if (mailProperties.getSslCheckServerIdentity() != null) {
|
||||
props.put(
|
||||
"mail.smtp.ssl.checkserveridentity",
|
||||
mailProperties.getSslCheckServerIdentity().toString());
|
||||
}
|
||||
|
||||
// Returns the configured mail sender, ready to send emails
|
||||
return mailSender;
|
||||
|
||||
+9
-81
@@ -1,7 +1,6 @@
|
||||
package stirling.software.proprietary.security.configuration;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
@@ -25,8 +24,6 @@ import org.springframework.security.saml2.provider.service.web.authentication.Op
|
||||
import org.springframework.security.web.SecurityFilterChain;
|
||||
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
|
||||
import org.springframework.security.web.authentication.rememberme.PersistentTokenRepository;
|
||||
import org.springframework.security.web.csrf.CookieCsrfTokenRepository;
|
||||
import org.springframework.security.web.csrf.CsrfTokenRequestAttributeHandler;
|
||||
import org.springframework.security.web.savedrequest.NullRequestCache;
|
||||
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
@@ -47,7 +44,6 @@ import stirling.software.proprietary.security.database.repository.PersistentLogi
|
||||
import stirling.software.proprietary.security.filter.IPRateLimitingFilter;
|
||||
import stirling.software.proprietary.security.filter.JwtAuthenticationFilter;
|
||||
import stirling.software.proprietary.security.filter.UserAuthenticationFilter;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
import stirling.software.proprietary.security.oauth2.CustomOAuth2AuthenticationFailureHandler;
|
||||
import stirling.software.proprietary.security.oauth2.CustomOAuth2AuthenticationSuccessHandler;
|
||||
import stirling.software.proprietary.security.saml2.CustomSaml2AuthenticationFailureHandler;
|
||||
@@ -198,74 +194,19 @@ public class SecurityConfiguration {
|
||||
http.cors(cors -> cors.disable());
|
||||
}
|
||||
|
||||
if (securityProperties.getCsrfDisabled() || !loginEnabledValue) {
|
||||
http.csrf(CsrfConfigurer::disable);
|
||||
}
|
||||
http.csrf(CsrfConfigurer::disable);
|
||||
|
||||
if (loginEnabledValue) {
|
||||
boolean v2Enabled = appConfig.v2Enabled();
|
||||
|
||||
http.addFilterBefore(
|
||||
userAuthenticationFilter, UsernamePasswordAuthenticationFilter.class)
|
||||
.addFilterBefore(rateLimitingFilter, UsernamePasswordAuthenticationFilter.class)
|
||||
.addFilterBefore(jwtAuthenticationFilter, UserAuthenticationFilter.class);
|
||||
|
||||
if (!securityProperties.getCsrfDisabled()) {
|
||||
CookieCsrfTokenRepository cookieRepo =
|
||||
CookieCsrfTokenRepository.withHttpOnlyFalse();
|
||||
CsrfTokenRequestAttributeHandler requestHandler =
|
||||
new CsrfTokenRequestAttributeHandler();
|
||||
requestHandler.setCsrfRequestAttributeName(null);
|
||||
http.csrf(
|
||||
csrf ->
|
||||
csrf.ignoringRequestMatchers(
|
||||
request -> {
|
||||
String uri = request.getRequestURI();
|
||||
|
||||
// Ignore CSRF for auth endpoints
|
||||
if (uri.startsWith("/api/v1/auth/")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String apiKey = request.getHeader("X-API-KEY");
|
||||
// If there's no API key, don't ignore CSRF
|
||||
// (return false)
|
||||
if (apiKey == null || apiKey.trim().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
// Validate API key using existing UserService
|
||||
try {
|
||||
Optional<User> user =
|
||||
userService.getUserByApiKey(apiKey);
|
||||
// If API key is valid, ignore CSRF (return
|
||||
// true)
|
||||
// If API key is invalid, don't ignore CSRF
|
||||
// (return false)
|
||||
return user.isPresent();
|
||||
} catch (Exception e) {
|
||||
// If there's any error validating the API
|
||||
// key, don't ignore CSRF
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.csrfTokenRepository(cookieRepo)
|
||||
.csrfTokenRequestHandler(requestHandler));
|
||||
}
|
||||
|
||||
http.sessionManagement(
|
||||
sessionManagement -> {
|
||||
if (v2Enabled) {
|
||||
sessionManagement ->
|
||||
sessionManagement.sessionCreationPolicy(
|
||||
SessionCreationPolicy.STATELESS);
|
||||
} else {
|
||||
sessionManagement
|
||||
.sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED)
|
||||
.maximumSessions(10)
|
||||
.maxSessionsPreventsLogin(false)
|
||||
.sessionRegistry(sessionRegistry)
|
||||
.expiredUrl("/login?logout=true");
|
||||
}
|
||||
});
|
||||
SessionCreationPolicy.STATELESS));
|
||||
http.authenticationProvider(daoAuthenticationProvider());
|
||||
http.requestCache(requestCache -> requestCache.requestCache(new NullRequestCache()));
|
||||
|
||||
@@ -331,7 +272,9 @@ public class SecurityConfiguration {
|
||||
formLogin ->
|
||||
formLogin
|
||||
.loginPage("/login") // Redirect here when unauthenticated
|
||||
.loginProcessingUrl("/perform_login") // Process form posts here (not /login)
|
||||
.loginProcessingUrl(
|
||||
"/perform_login") // Process form posts here (not
|
||||
// /login)
|
||||
.successHandler(
|
||||
new CustomAuthenticationSuccessHandler(
|
||||
loginAttemptService,
|
||||
@@ -346,18 +289,7 @@ public class SecurityConfiguration {
|
||||
if (securityProperties.isOauth2Active()) {
|
||||
http.oauth2Login(
|
||||
oauth2 -> {
|
||||
// v1: Use /oauth2 as login page for Thymeleaf templates
|
||||
if (!v2Enabled) {
|
||||
oauth2.loginPage("/oauth2");
|
||||
}
|
||||
|
||||
// v2: Don't set loginPage, let default OAuth2 flow handle it
|
||||
oauth2
|
||||
/*
|
||||
This Custom handler is used to check if the OAUTH2 user trying to log in, already exists in the database.
|
||||
If user exists, login proceeds as usual. If user does not exist, then it is auto-created but only if 'OAUTH2AutoCreateUser'
|
||||
is set as true, else login fails with an error message advising the same.
|
||||
*/
|
||||
oauth2.loginPage("/login")
|
||||
.successHandler(
|
||||
new CustomOAuth2AuthenticationSuccessHandler(
|
||||
loginAttemptService,
|
||||
@@ -391,12 +323,8 @@ public class SecurityConfiguration {
|
||||
.saml2Login(
|
||||
saml2 -> {
|
||||
try {
|
||||
// Only set login page for v1/Thymeleaf mode
|
||||
if (!v2Enabled) {
|
||||
saml2.loginPage("/saml2");
|
||||
}
|
||||
|
||||
saml2.relyingPartyRegistrationRepository(
|
||||
saml2.loginPage("/login")
|
||||
.relyingPartyRegistrationRepository(
|
||||
saml2RelyingPartyRegistrations)
|
||||
.authenticationManager(
|
||||
new ProviderManager(authenticationProvider))
|
||||
|
||||
+77
@@ -7,6 +7,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@@ -18,6 +19,7 @@ import org.springframework.security.oauth2.core.user.OAuth2User;
|
||||
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import jakarta.mail.MessagingException;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.transaction.Transactional;
|
||||
@@ -236,6 +238,8 @@ public class UserController {
|
||||
return ResponseEntity.status(HttpStatus.UNAUTHORIZED)
|
||||
.body(Map.of("error", "incorrectPassword", "message", "Incorrect password"));
|
||||
}
|
||||
// Set flags before changing password so they're saved together
|
||||
user.setForcePasswordChange(false);
|
||||
userService.changePassword(user, newPassword);
|
||||
userService.changeFirstUse(user, false);
|
||||
// Logout using Spring's utility
|
||||
@@ -584,6 +588,79 @@ public class UserController {
|
||||
return ResponseEntity.ok(Map.of("message", "User role updated successfully"));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
||||
@PostMapping("/admin/changePasswordForUser")
|
||||
public ResponseEntity<?> changePasswordForUser(
|
||||
@RequestParam(name = "username") String username,
|
||||
@RequestParam(name = "newPassword", required = false) String newPassword,
|
||||
@RequestParam(name = "generateRandom", defaultValue = "false") boolean generateRandom,
|
||||
@RequestParam(name = "sendEmail", defaultValue = "false") boolean sendEmail,
|
||||
@RequestParam(name = "includePassword", defaultValue = "false") boolean includePassword,
|
||||
@RequestParam(name = "forcePasswordChange", defaultValue = "false")
|
||||
boolean forcePasswordChange,
|
||||
HttpServletRequest request,
|
||||
Authentication authentication)
|
||||
throws SQLException, UnsupportedProviderException, MessagingException {
|
||||
Optional<User> userOpt = userService.findByUsernameIgnoreCase(username);
|
||||
if (userOpt.isEmpty()) {
|
||||
return ResponseEntity.status(HttpStatus.NOT_FOUND)
|
||||
.body(Map.of("error", "User not found."));
|
||||
}
|
||||
|
||||
String currentUsername = authentication.getName();
|
||||
if (currentUsername.equalsIgnoreCase(username)) {
|
||||
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
|
||||
.body(Map.of("error", "Cannot change your own password."));
|
||||
}
|
||||
|
||||
User user = userOpt.get();
|
||||
|
||||
String finalPassword = newPassword;
|
||||
if (generateRandom) {
|
||||
finalPassword = UUID.randomUUID().toString().replace("-", "").substring(0, 12);
|
||||
}
|
||||
|
||||
if (finalPassword == null || finalPassword.trim().isEmpty()) {
|
||||
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
|
||||
.body(Map.of("error", "New password is required."));
|
||||
}
|
||||
|
||||
// Set force password change flag before changing password so both are saved together
|
||||
user.setForcePasswordChange(forcePasswordChange);
|
||||
userService.changePassword(user, finalPassword);
|
||||
|
||||
// Invalidate all active sessions to force reauthentication
|
||||
userService.invalidateUserSessions(username);
|
||||
|
||||
if (sendEmail) {
|
||||
if (emailService.isEmpty() || !applicationProperties.getMail().isEnabled()) {
|
||||
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
|
||||
.body(Map.of("error", "Email is not configured."));
|
||||
}
|
||||
|
||||
String userEmail = user.getUsername();
|
||||
// Check if username is a valid email format
|
||||
if (userEmail == null || userEmail.isBlank() || !userEmail.contains("@")) {
|
||||
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
|
||||
.body(
|
||||
Map.of(
|
||||
"error",
|
||||
"User's email is not a valid email address. Notifications are disabled."));
|
||||
}
|
||||
|
||||
String loginUrl = buildLoginUrl(request);
|
||||
emailService
|
||||
.get()
|
||||
.sendPasswordChangedNotification(
|
||||
userEmail,
|
||||
user.getUsername(),
|
||||
includePassword ? finalPassword : null,
|
||||
loginUrl);
|
||||
}
|
||||
|
||||
return ResponseEntity.ok(Map.of("message", "User password updated successfully"));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
||||
@PostMapping("/admin/changeUserEnabled/{username}")
|
||||
public ResponseEntity<?> changeUserEnabled(
|
||||
|
||||
+8
-18
@@ -26,6 +26,7 @@ import jakarta.servlet.ServletException;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import stirling.software.common.model.ApplicationProperties;
|
||||
@@ -39,6 +40,7 @@ import stirling.software.proprietary.security.service.JwtServiceInterface;
|
||||
import stirling.software.proprietary.security.service.UserService;
|
||||
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
|
||||
private final JwtServiceInterface jwtService;
|
||||
@@ -47,19 +49,6 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
private final AuthenticationEntryPoint authenticationEntryPoint;
|
||||
private final ApplicationProperties.Security securityProperties;
|
||||
|
||||
public JwtAuthenticationFilter(
|
||||
JwtServiceInterface jwtService,
|
||||
UserService userService,
|
||||
CustomUserDetailsService userDetailsService,
|
||||
AuthenticationEntryPoint authenticationEntryPoint,
|
||||
ApplicationProperties.Security securityProperties) {
|
||||
this.jwtService = jwtService;
|
||||
this.userService = userService;
|
||||
this.userDetailsService = userDetailsService;
|
||||
this.authenticationEntryPoint = authenticationEntryPoint;
|
||||
this.securityProperties = securityProperties;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doFilterInternal(
|
||||
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
|
||||
@@ -68,7 +57,11 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
filterChain.doFilter(request, response);
|
||||
return;
|
||||
}
|
||||
if (isStaticResource(request.getContextPath(), request.getRequestURI())) {
|
||||
|
||||
String requestURI = request.getRequestURI();
|
||||
String contextPath = request.getContextPath();
|
||||
|
||||
if (isStaticResource(contextPath, requestURI)) {
|
||||
filterChain.doFilter(request, response);
|
||||
return;
|
||||
}
|
||||
@@ -77,10 +70,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
String jwtToken = jwtService.extractToken(request);
|
||||
|
||||
if (jwtToken == null) {
|
||||
// Allow specific auth endpoints to pass through without JWT
|
||||
String requestURI = request.getRequestURI();
|
||||
String contextPath = request.getContextPath();
|
||||
|
||||
// Allow auth endpoints to pass through without JWT
|
||||
if (!isPublicAuthEndpoint(requestURI, contextPath)) {
|
||||
// For API requests, return 401 JSON
|
||||
String acceptHeader = request.getHeader("Accept");
|
||||
|
||||
-18
@@ -241,24 +241,6 @@ public class UserAuthenticationFilter extends OncePerRequestFilter {
|
||||
filterChain.doFilter(request, response);
|
||||
}
|
||||
|
||||
private static boolean isPublicAuthEndpoint(String requestURI, String contextPath) {
|
||||
// Remove context path from URI to normalize path matching
|
||||
String trimmedUri =
|
||||
requestURI.startsWith(contextPath)
|
||||
? requestURI.substring(contextPath.length())
|
||||
: requestURI;
|
||||
|
||||
// Public auth endpoints that don't require authentication
|
||||
return trimmedUri.startsWith("/login")
|
||||
|| trimmedUri.startsWith("/auth/")
|
||||
|| trimmedUri.startsWith("/oauth2")
|
||||
|| trimmedUri.startsWith("/saml2")
|
||||
|| trimmedUri.startsWith("/api/v1/auth/login")
|
||||
|| trimmedUri.startsWith("/api/v1/auth/refresh")
|
||||
|| trimmedUri.startsWith("/api/v1/auth/logout")
|
||||
|| trimmedUri.startsWith("/api/v1/proprietary/ui-data/login");
|
||||
}
|
||||
|
||||
private enum UserLoginType {
|
||||
USERDETAILS("UserDetails"),
|
||||
OAUTH2USER("OAuth2User"),
|
||||
|
||||
@@ -59,6 +59,9 @@ public class User implements UserDetails, Serializable {
|
||||
@Column(name = "hasCompletedInitialSetup")
|
||||
private Boolean hasCompletedInitialSetup = false;
|
||||
|
||||
@Column(name = "forcePasswordChange")
|
||||
private Boolean forcePasswordChange = false;
|
||||
|
||||
@Column(name = "roleName")
|
||||
private String roleName;
|
||||
|
||||
@@ -117,6 +120,14 @@ public class User implements UserDetails, Serializable {
|
||||
this.hasCompletedInitialSetup = hasCompletedInitialSetup;
|
||||
}
|
||||
|
||||
public boolean isForcePasswordChange() {
|
||||
return forcePasswordChange != null && forcePasswordChange;
|
||||
}
|
||||
|
||||
public void setForcePasswordChange(boolean forcePasswordChange) {
|
||||
this.forcePasswordChange = forcePasswordChange;
|
||||
}
|
||||
|
||||
public void setAuthenticationType(AuthenticationType authenticationType) {
|
||||
this.authenticationType = authenticationType.toString().toLowerCase();
|
||||
}
|
||||
|
||||
+8
@@ -27,6 +27,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import stirling.software.common.model.ApplicationProperties;
|
||||
import stirling.software.common.model.exception.UnsupportedProviderException;
|
||||
@@ -39,6 +40,7 @@ import stirling.software.proprietary.security.service.JwtServiceInterface;
|
||||
import stirling.software.proprietary.security.service.LoginAttemptService;
|
||||
import stirling.software.proprietary.security.service.UserService;
|
||||
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class CustomOAuth2AuthenticationSuccessHandler
|
||||
extends SavedRequestAwareAuthenticationSuccessHandler {
|
||||
@@ -77,12 +79,18 @@ public class CustomOAuth2AuthenticationSuccessHandler
|
||||
|
||||
if (user != null && !licenseSettingsService.isOAuthEligible(user)) {
|
||||
// User is not grandfathered and no paid license - block OAuth login
|
||||
log.warn(
|
||||
"OAuth login blocked for existing user '{}' - not eligible (not grandfathered and no paid license)",
|
||||
username);
|
||||
response.sendRedirect(
|
||||
request.getContextPath() + "/logout?oAuth2RequiresLicense=true");
|
||||
return;
|
||||
}
|
||||
} else if (!licenseSettingsService.isOAuthEligible(null)) {
|
||||
// No existing user and no paid license -> block auto creation
|
||||
log.warn(
|
||||
"OAuth login blocked for new user '{}' - not eligible (no paid license for auto-creation)",
|
||||
username);
|
||||
response.sendRedirect(request.getContextPath() + "/logout?oAuth2RequiresLicense=true");
|
||||
return;
|
||||
}
|
||||
|
||||
+20
-4
@@ -67,10 +67,15 @@ public class OAuth2Configuration {
|
||||
keycloakClientRegistration().ifPresent(registrations::add);
|
||||
|
||||
if (registrations.isEmpty()) {
|
||||
log.error("No OAuth2 provider registered");
|
||||
log.error("No OAuth2 provider registered - check your OAuth2 configuration");
|
||||
throw new NoProviderFoundException("At least one OAuth2 provider must be configured.");
|
||||
}
|
||||
|
||||
log.info(
|
||||
"OAuth2 ClientRegistrationRepository created with {} provider(s): {}",
|
||||
registrations.size(),
|
||||
registrations.stream().map(ClientRegistration::getRegistrationId).toList());
|
||||
|
||||
return new InMemoryClientRegistrationRepository(registrations);
|
||||
}
|
||||
|
||||
@@ -165,7 +170,6 @@ public class OAuth2Configuration {
|
||||
githubClient.getUseAsUsername());
|
||||
|
||||
boolean isValid = validateProvider(github);
|
||||
log.info("Initialised GitHub OAuth2 provider");
|
||||
|
||||
return isValid
|
||||
? Optional.of(
|
||||
@@ -208,7 +212,19 @@ public class OAuth2Configuration {
|
||||
null,
|
||||
null);
|
||||
|
||||
return !isStringEmpty(oidcProvider.getIssuer()) || validateProvider(oidcProvider)
|
||||
boolean isValid =
|
||||
!isStringEmpty(oidcProvider.getIssuer()) || validateProvider(oidcProvider);
|
||||
if (isValid) {
|
||||
log.info(
|
||||
"Initialised OIDC OAuth2 provider: registrationId='{}', issuer='{}', redirectUri='{}'",
|
||||
name,
|
||||
oauth.getIssuer(),
|
||||
REDIRECT_URI_PATH + name);
|
||||
} else {
|
||||
log.warn("OIDC OAuth2 provider validation failed - provider will not be registered");
|
||||
}
|
||||
|
||||
return isValid
|
||||
? Optional.of(
|
||||
ClientRegistrations.fromIssuerLocation(oauth.getIssuer())
|
||||
.registrationId(name)
|
||||
@@ -217,7 +233,7 @@ public class OAuth2Configuration {
|
||||
.scope(oidcProvider.getScopes())
|
||||
.userNameAttributeName(oidcProvider.getUseAsUsername().getName())
|
||||
.clientName(clientName)
|
||||
.redirectUri(REDIRECT_URI_PATH + "oidc")
|
||||
.redirectUri(REDIRECT_URI_PATH + name)
|
||||
.authorizationGrantType(AUTHORIZATION_CODE)
|
||||
.build())
|
||||
: Optional.empty();
|
||||
|
||||
+11
-5
@@ -67,19 +67,25 @@ public class CustomSaml2AuthenticationSuccessHandler
|
||||
|
||||
boolean userExists = userService.usernameExistsIgnoreCase(username);
|
||||
|
||||
// Check if user is eligible for SAML (grandfathered or system has paid license)
|
||||
// Check if user is eligible for SAML (grandfathered or system has ENTERPRISE license)
|
||||
if (userExists) {
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
userService.findByUsernameIgnoreCase(username).orElse(null);
|
||||
|
||||
if (user != null && !licenseSettingsService.isOAuthEligible(user)) {
|
||||
// User is not grandfathered and no paid license - block SAML login
|
||||
if (user != null && !licenseSettingsService.isSamlEligible(user)) {
|
||||
// User is not grandfathered and no ENTERPRISE license - block SAML login
|
||||
log.warn(
|
||||
"SAML2 login blocked for existing user '{}' - not eligible (not grandfathered and no ENTERPRISE license)",
|
||||
username);
|
||||
response.sendRedirect(
|
||||
request.getContextPath() + "/logout?saml2RequiresLicense=true");
|
||||
return;
|
||||
}
|
||||
} else if (!licenseSettingsService.isOAuthEligible(null)) {
|
||||
// No existing user and no paid license -> block auto creation
|
||||
} else if (!licenseSettingsService.isSamlEligible(null)) {
|
||||
// No existing user and no ENTERPRISE license -> block auto creation
|
||||
log.warn(
|
||||
"SAML2 login blocked for new user '{}' - not eligible (no ENTERPRISE license for auto-creation)",
|
||||
username);
|
||||
response.sendRedirect(
|
||||
request.getContextPath() + "/logout?saml2RequiresLicense=true");
|
||||
return;
|
||||
|
||||
+50
@@ -223,4 +223,54 @@ public class EmailService {
|
||||
|
||||
sendPlainEmail(to, subject, body, true);
|
||||
}
|
||||
|
||||
@Async
|
||||
public void sendPasswordChangedNotification(
|
||||
String to, String username, String newPassword, String loginUrl)
|
||||
throws MessagingException {
|
||||
String subject = "Your Stirling PDF password has been updated";
|
||||
|
||||
String passwordSection =
|
||||
newPassword == null
|
||||
? ""
|
||||
: """
|
||||
<div style=\"background-color: #f8f9fa; border-left: 4px solid #007bff; padding: 15px; margin: 20px 0; border-radius: 4px;\">
|
||||
<p style=\"margin: 0;\"><strong>Temporary Password:</strong> %s</p>
|
||||
</div>
|
||||
"""
|
||||
.formatted(newPassword);
|
||||
|
||||
String body =
|
||||
"""
|
||||
<html><body style=\"margin: 0; padding: 0;\">
|
||||
<div style=\"font-family: Arial, sans-serif; background-color: #f8f9fa; padding: 20px;\">
|
||||
<div style=\"max-width: 600px; margin: auto; background-color: #ffffff; border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0;\">
|
||||
<div style=\"text-align: center; padding: 20px; background-color: #222;\">
|
||||
<img src=\"https://raw.githubusercontent.com/Stirling-Tools/Stirling-PDF/main/docs/stirling-transparent.svg\" alt=\"Stirling PDF\" style=\"max-height: 60px;\">
|
||||
</div>
|
||||
<div style=\"padding: 30px; color: #333;\">
|
||||
<h2 style=\"color: #222; margin-top: 0;\">Your password was changed</h2>
|
||||
<p>Hello %s,</p>
|
||||
<p>An administrator has updated the password for your Stirling PDF account.</p>
|
||||
%s
|
||||
<p>If you did not expect this change, please contact your administrator immediately.</p>
|
||||
<div style=\"text-align: center; margin: 30px 0;\">
|
||||
<a href=\"%s\" style=\"display: inline-block; background-color: #007bff; color: #ffffff; padding: 14px 28px; text-decoration: none; border-radius: 5px; font-weight: bold;\">Go to Stirling PDF</a>
|
||||
</div>
|
||||
<p style=\"font-size: 14px; color: #666;\">Or copy and paste this link in your browser:</p>
|
||||
<div style=\"background-color: #f8f9fa; padding: 12px; margin: 15px 0; border-radius: 4px; word-break: break-all; font-size: 13px; color: #555;\">
|
||||
%s
|
||||
</div>
|
||||
</div>
|
||||
<div style=\"text-align: center; padding: 15px; font-size: 12px; color: #777; background-color: #f0f0f0;\">
|
||||
© 2025 Stirling PDF. All rights reserved.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body></html>
|
||||
"""
|
||||
.formatted(username, passwordSection, loginUrl, loginUrl);
|
||||
|
||||
sendPlainEmail(to, subject, body, true);
|
||||
}
|
||||
}
|
||||
|
||||
+82
-6
@@ -21,6 +21,7 @@ import stirling.software.common.model.ApplicationProperties;
|
||||
import stirling.software.proprietary.model.UserLicenseSettings;
|
||||
import stirling.software.proprietary.security.configuration.ee.KeygenLicenseVerifier.License;
|
||||
import stirling.software.proprietary.security.configuration.ee.LicenseKeyChecker;
|
||||
import stirling.software.proprietary.security.model.User;
|
||||
import stirling.software.proprietary.security.repository.UserLicenseSettingsRepository;
|
||||
import stirling.software.proprietary.security.service.UserService;
|
||||
|
||||
@@ -343,17 +344,76 @@ public class UserLicenseSettingsService {
|
||||
* @param user The user to check
|
||||
* @return true if the user can use OAuth/SAML
|
||||
*/
|
||||
public boolean isOAuthEligible(stirling.software.proprietary.security.model.User user) {
|
||||
public boolean isOAuthEligible(User user) {
|
||||
String username = (user != null) ? user.getUsername() : "<new user>";
|
||||
log.info("OAuth eligibility check for user: {}", username);
|
||||
|
||||
// Grandfathered users always have OAuth access
|
||||
if (user != null && user.isOauthGrandfathered()) {
|
||||
log.debug("User {} is grandfathered for OAuth", user.getUsername());
|
||||
return true;
|
||||
}
|
||||
|
||||
// Users can use OAuth/SAML only if system has ENTERPRISE license
|
||||
boolean hasEnterpriseLicense = hasEnterpriseLicense();
|
||||
log.debug("OAuth eligibility check: hasEnterpriseLicense={}", hasEnterpriseLicense);
|
||||
return hasEnterpriseLicense;
|
||||
// todo: remove
|
||||
if (user != null) {
|
||||
log.info(
|
||||
"User {} is NOT grandfathered (isOauthGrandfathered={})",
|
||||
username,
|
||||
user.isOauthGrandfathered());
|
||||
} else {
|
||||
log.info("New user attempting OAuth login - checking license requirement");
|
||||
}
|
||||
|
||||
// Users can use OAuth with SERVER or ENTERPRISE license
|
||||
boolean hasPaid = hasPaidLicense();
|
||||
log.info(
|
||||
"OAuth eligibility result: hasPaidLicense={}, user={}, eligible={}",
|
||||
hasPaid,
|
||||
username,
|
||||
hasPaid);
|
||||
return hasPaid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a user is eligible to use SAML authentication.
|
||||
*
|
||||
* <p>A user is eligible if:
|
||||
*
|
||||
* <ul>
|
||||
* <li>They are grandfathered for OAuth (existing user before policy change), OR
|
||||
* <li>The system has an ENTERPRISE license (SAML is enterprise-only)
|
||||
* </ul>
|
||||
*
|
||||
* @param user The user to check
|
||||
* @return true if the user can use SAML
|
||||
*/
|
||||
public boolean isSamlEligible(User user) {
|
||||
String username = (user != null) ? user.getUsername() : "<new user>";
|
||||
log.info("SAML2 eligibility check for user: {}", username);
|
||||
|
||||
// Grandfathered users always have SAML access
|
||||
if (user != null && user.isOauthGrandfathered()) {
|
||||
log.info("User {} is grandfathered for SAML2 - ELIGIBLE", username);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (user != null) {
|
||||
log.info(
|
||||
"User {} is NOT grandfathered (isOauthGrandfathered={})",
|
||||
username,
|
||||
user.isOauthGrandfathered());
|
||||
} else {
|
||||
log.info("New user attempting SAML2 login - checking license requirement");
|
||||
}
|
||||
|
||||
// Users can use SAML only with ENTERPRISE license
|
||||
boolean hasEnterprise = hasEnterpriseLicense();
|
||||
log.info(
|
||||
"SAML2 eligibility result: hasEnterpriseLicense={}, user={}, eligible={}",
|
||||
hasEnterprise,
|
||||
username,
|
||||
hasEnterprise);
|
||||
return hasEnterprise;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -495,8 +555,12 @@ public class UserLicenseSettingsService {
|
||||
if (checker == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
License license = checker.getPremiumLicenseEnabledResult();
|
||||
return license == License.SERVER || license == License.ENTERPRISE;
|
||||
boolean hasPaid = (license == License.SERVER || license == License.ENTERPRISE);
|
||||
log.info("License check result: type={}, requiresPaid=true, hasPaid={}", license, hasPaid);
|
||||
|
||||
return hasPaid;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -510,7 +574,19 @@ public class UserLicenseSettingsService {
|
||||
if (checker == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
License license = checker.getPremiumLicenseEnabledResult();
|
||||
log.info(
|
||||
"License check result: type={}, requiresEnterprise=true, hasEnterprise={}",
|
||||
license,
|
||||
(license == License.ENTERPRISE));
|
||||
|
||||
if (license != License.ENTERPRISE) {
|
||||
log.warn(
|
||||
"SAML2 requires ENTERPRISE license but found: {}. SAML2 login will be blocked.",
|
||||
license);
|
||||
}
|
||||
|
||||
return license == License.ENTERPRISE;
|
||||
}
|
||||
}
|
||||
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
package stirling.software.proprietary.security.oauth2;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Unit tests for OAuth2Configuration redirect URI logic.
|
||||
*
|
||||
* <p>These tests validate the critical fix for GitHub issue #5141: The redirect URI path segment
|
||||
* MUST match the registration ID. Previously, the redirect URI was hardcoded to 'oidc', causing
|
||||
* InvalidClientRegistrationIdException when custom provider names were used.
|
||||
*
|
||||
* <p>Note: These are conceptual tests documenting the expected behavior. Full integration testing
|
||||
* with actual OIDC discovery would require: 1. Mock HTTP server for OIDC discovery endpoints 2.
|
||||
* Valid OIDC configuration responses 3. Network mocking infrastructure
|
||||
*/
|
||||
class OAuth2ConfigurationTest {
|
||||
|
||||
/**
|
||||
* Tests the redirect URI pattern for OIDC provider configurations.
|
||||
*
|
||||
* <p>Critical behavior (GitHub issue #5141 fix): The redirect URI path segment MUST match the
|
||||
* registration ID. For example: - Provider name: "authentik" → Redirect URI:
|
||||
* "/login/oauth2/code/authentik" - Provider name: "mycompany" → Redirect URI:
|
||||
* "/login/oauth2/code/mycompany" - Provider name: "oidc" → Redirect URI:
|
||||
* "/login/oauth2/code/oidc"
|
||||
*
|
||||
* <p>Previously, the redirect URI was hardcoded to 'oidc', causing Spring Security to look for
|
||||
* a registration with ID 'oidc' when the provider redirected back. This caused
|
||||
* InvalidClientRegistrationIdException when custom provider names were used.
|
||||
*/
|
||||
@Test
|
||||
void testRedirectUriPattern_usesProviderNameNotHardcodedOidc() {
|
||||
// Verify the redirect URI pattern constant
|
||||
String redirectUriBase = "{baseUrl}/login/oauth2/code/";
|
||||
|
||||
// Test cases: provider name → expected redirect URI
|
||||
String[][] testCases = {
|
||||
{"authentik", redirectUriBase + "authentik"},
|
||||
{"mycompany", redirectUriBase + "mycompany"},
|
||||
{"oidc", redirectUriBase + "oidc"},
|
||||
{"okta", redirectUriBase + "okta"},
|
||||
{"auth0", redirectUriBase + "auth0"}
|
||||
};
|
||||
|
||||
for (String[] testCase : testCases) {
|
||||
String providerName = testCase[0];
|
||||
String expectedRedirectUri = testCase[1];
|
||||
|
||||
// The fix ensures: .redirectUri(REDIRECT_URI_PATH + name)
|
||||
// instead of: .redirectUri(REDIRECT_URI_PATH + "oidc")
|
||||
String actualRedirectUri = redirectUriBase + providerName;
|
||||
|
||||
assertEquals(
|
||||
expectedRedirectUri,
|
||||
actualRedirectUri,
|
||||
String.format(
|
||||
"Redirect URI for provider '%s' must use provider name, not hardcoded 'oidc'",
|
||||
providerName));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Documents the critical fix for OAuth2 redirect URI mismatch.
|
||||
*
|
||||
* <p>This test validates the logic that was changed in OAuth2Configuration.java line 220:
|
||||
*
|
||||
* <pre>
|
||||
* // BEFORE (bug):
|
||||
* .redirectUri(REDIRECT_URI_PATH + "oidc") // Always "oidc"
|
||||
*
|
||||
* // AFTER (fix):
|
||||
* .redirectUri(REDIRECT_URI_PATH + name) // Dynamic provider name
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
void testCriticalFix_redirectUriMatchesRegistrationId() {
|
||||
// The redirect URI path segment extraction by Spring Security
|
||||
String callbackUrl = "http://localhost:8080/login/oauth2/code/authentik?code=abc123";
|
||||
|
||||
// Spring extracts the path segment between "code/" and "?"
|
||||
String extractedRegistrationId = extractRegistrationIdFromCallback(callbackUrl);
|
||||
|
||||
// The extracted ID MUST match an actual registration ID
|
||||
assertEquals("authentik", extractedRegistrationId);
|
||||
|
||||
// If we had used hardcoded "oidc", the callback would be:
|
||||
String buggyCallbackUrl = "http://localhost:8080/login/oauth2/code/oidc?code=abc123";
|
||||
String buggyExtractedId = extractRegistrationIdFromCallback(buggyCallbackUrl);
|
||||
|
||||
// This would look for registration with ID "oidc" but we registered "authentik"
|
||||
assertEquals("oidc", buggyExtractedId);
|
||||
|
||||
// The mismatch: registrationId="authentik", but Spring looks for "oidc"
|
||||
// Result: InvalidClientRegistrationIdException
|
||||
assertNotNull(buggyExtractedId, "This demonstrates the bug that was fixed");
|
||||
}
|
||||
|
||||
/** Helper method simulating Spring's extraction of registration ID from callback URL */
|
||||
private String extractRegistrationIdFromCallback(String callbackUrl) {
|
||||
// Simplified version of what Spring Security does
|
||||
// Actual: OAuth2AuthorizationRequestRedirectFilter extracts from path
|
||||
String path = callbackUrl.split("\\?")[0];
|
||||
String[] parts = path.split("/");
|
||||
return parts[parts.length - 1]; // Last path segment
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the frontend-backend flow for custom provider names.
|
||||
*
|
||||
* <p>Complete flow: 1. Backend: Provider configured as "authentik" in settings.yml 2. Backend:
|
||||
* ClientRegistration created with registrationId="authentik" 3. Backend: Redirect URI set to
|
||||
* "{baseUrl}/login/oauth2/code/authentik" 4. Backend: Login endpoint returns providerList with
|
||||
* "/oauth2/authorization/authentik" 5. Frontend: Extracts "authentik" from path and uses it for
|
||||
* OAuth login 6. Frontend: Redirects to "/oauth2/authorization/authentik" 7. Backend: Spring
|
||||
* Security redirects to provider with redirect_uri containing "authentik" 8. Provider:
|
||||
* Redirects back to "/login/oauth2/code/authentik?code=..." 9. Backend: Spring Security
|
||||
* extracts "authentik" from callback URL 10. Backend: Looks up ClientRegistration with ID
|
||||
* "authentik" ✅ SUCCESS
|
||||
*
|
||||
* <p>If redirect URI was hardcoded to "oidc" (the bug): Step 7: Provider redirects to
|
||||
* "/login/oauth2/code/oidc?code=..." Step 9: Spring Security looks for registration ID "oidc"
|
||||
* Step 10: FAIL - No registration found with ID "oidc" (we registered "authentik") Result:
|
||||
* InvalidClientRegistrationIdException
|
||||
*/
|
||||
@Test
|
||||
void testEndToEndFlow_registrationIdConsistency() {
|
||||
String providerName = "authentik";
|
||||
|
||||
// Step 2: Registration ID
|
||||
String registrationId = providerName;
|
||||
assertEquals("authentik", registrationId);
|
||||
|
||||
// Step 3: Redirect URI (MUST use same name)
|
||||
String redirectUri = "{baseUrl}/login/oauth2/code/" + providerName;
|
||||
assertEquals("{baseUrl}/login/oauth2/code/authentik", redirectUri);
|
||||
|
||||
// Step 4: Provider list endpoint
|
||||
String authorizationPath = "/oauth2/authorization/" + providerName;
|
||||
assertEquals("/oauth2/authorization/authentik", authorizationPath);
|
||||
|
||||
// Step 5: Frontend extracts provider ID
|
||||
String frontendProviderId =
|
||||
authorizationPath.substring(authorizationPath.lastIndexOf('/') + 1);
|
||||
assertEquals("authentik", frontendProviderId);
|
||||
|
||||
// Step 6-8: OAuth flow (external)
|
||||
|
||||
// Step 9: Callback URL from provider
|
||||
String callbackUrl =
|
||||
"http://localhost:8080/login/oauth2/code/" + providerName + "?code=abc123";
|
||||
String extractedId = extractRegistrationIdFromCallback(callbackUrl);
|
||||
|
||||
// Step 10: Registration lookup
|
||||
assertEquals(
|
||||
registrationId,
|
||||
extractedId,
|
||||
"Registration ID from callback MUST match original registration ID");
|
||||
}
|
||||
}
|
||||
+32
-1
@@ -27,6 +27,11 @@ class MailConfigTest {
|
||||
when(mailProps.getPort()).thenReturn(587);
|
||||
when(mailProps.getUsername()).thenReturn("user@example.com");
|
||||
when(mailProps.getPassword()).thenReturn("password");
|
||||
when(mailProps.getStartTlsEnable()).thenReturn(null);
|
||||
when(mailProps.getStartTlsRequired()).thenReturn(null);
|
||||
when(mailProps.getSslEnable()).thenReturn(null);
|
||||
when(mailProps.getSslTrust()).thenReturn(null);
|
||||
when(mailProps.getSslCheckServerIdentity()).thenReturn(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -50,6 +55,32 @@ class MailConfigTest {
|
||||
() -> assertEquals("password", impl.getPassword()),
|
||||
() -> assertEquals("UTF-8", impl.getDefaultEncoding()),
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.auth")),
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.starttls.enable")));
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.starttls.enable")),
|
||||
() -> assertEquals(null, props.getProperty("mail.smtp.starttls.required")),
|
||||
() -> assertEquals(null, props.getProperty("mail.smtp.ssl.enable")),
|
||||
() -> assertEquals("*", props.getProperty("mail.smtp.ssl.trust")));
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldRespectExplicitTlsOverrides() {
|
||||
ApplicationProperties appProps = mock(ApplicationProperties.class);
|
||||
when(mailProps.getStartTlsEnable()).thenReturn(false);
|
||||
when(mailProps.getStartTlsRequired()).thenReturn(true);
|
||||
when(mailProps.getSslEnable()).thenReturn(true);
|
||||
when(mailProps.getSslTrust()).thenReturn("*");
|
||||
when(mailProps.getSslCheckServerIdentity()).thenReturn(true);
|
||||
when(appProps.getMail()).thenReturn(mailProps);
|
||||
|
||||
MailConfig config = new MailConfig(appProps);
|
||||
JavaMailSenderImpl impl = (JavaMailSenderImpl) config.javaMailSender();
|
||||
|
||||
Properties props = impl.getJavaMailProperties();
|
||||
|
||||
assertAll(
|
||||
() -> assertEquals("false", props.getProperty("mail.smtp.starttls.enable")),
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.starttls.required")),
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.ssl.enable")),
|
||||
() -> assertEquals("*", props.getProperty("mail.smtp.ssl.trust")),
|
||||
() -> assertEquals("true", props.getProperty("mail.smtp.ssl.checkserveridentity")));
|
||||
}
|
||||
}
|
||||
|
||||
+218
@@ -267,4 +267,222 @@ class UserLicenseSettingsServiceTest {
|
||||
verify(userService, times(1)).grandfatherAllOAuthUsers();
|
||||
verify(userService, times(1)).grandfatherPendingSsoUsersWithoutSession();
|
||||
}
|
||||
|
||||
// ===== OAuth Eligibility Tests =====
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_grandfatheredUser_returnsTrue() {
|
||||
// Grandfathered user should be eligible regardless of license
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("grandfathered-user");
|
||||
user.setOauthGrandfathered(true);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.NORMAL);
|
||||
|
||||
boolean result = service.isOAuthEligible(user);
|
||||
|
||||
assertEquals(true, result, "Grandfathered user should be eligible for OAuth");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_nonGrandfatheredUserWithServerLicense_returnsTrue() {
|
||||
// Non-grandfathered user with SERVER license should be eligible
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.SERVER);
|
||||
|
||||
boolean result = service.isOAuthEligible(user);
|
||||
|
||||
assertEquals(true, result, "Non-grandfathered user with SERVER license should be eligible");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_nonGrandfatheredUserWithEnterpriseLicense_returnsTrue() {
|
||||
// Non-grandfathered user with ENTERPRISE license should be eligible
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.ENTERPRISE);
|
||||
|
||||
boolean result = service.isOAuthEligible(user);
|
||||
|
||||
assertEquals(
|
||||
true, result, "Non-grandfathered user with ENTERPRISE license should be eligible");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_nonGrandfatheredUserWithNoLicense_returnsFalse() {
|
||||
// Non-grandfathered user without license should NOT be eligible
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.NORMAL);
|
||||
|
||||
boolean result = service.isOAuthEligible(user);
|
||||
|
||||
assertEquals(
|
||||
false,
|
||||
result,
|
||||
"Non-grandfathered user without paid license should NOT be eligible");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_newUserWithServerLicense_returnsTrue() {
|
||||
// New user (null) with SERVER license should be eligible for auto-creation
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.SERVER);
|
||||
|
||||
boolean result = service.isOAuthEligible(null);
|
||||
|
||||
assertEquals(
|
||||
true, result, "New user with SERVER license should be eligible for auto-creation");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_newUserWithNoLicense_returnsFalse() {
|
||||
// New user (null) without license should NOT be eligible
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.NORMAL);
|
||||
|
||||
boolean result = service.isOAuthEligible(null);
|
||||
|
||||
assertEquals(
|
||||
false,
|
||||
result,
|
||||
"New user without paid license should NOT be eligible for auto-creation");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isOAuthEligible_licenseCheckerUnavailable_returnsFalse() {
|
||||
// If LicenseKeyChecker is unavailable, OAuth should be blocked
|
||||
when(licenseKeyCheckerProvider.getIfAvailable()).thenReturn(null);
|
||||
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
boolean result = service.isOAuthEligible(user);
|
||||
|
||||
assertEquals(
|
||||
false, result, "OAuth should be blocked when LicenseKeyChecker is unavailable");
|
||||
}
|
||||
|
||||
// ===== SAML Eligibility Tests =====
|
||||
|
||||
@Test
|
||||
void isSamlEligible_grandfatheredUser_returnsTrue() {
|
||||
// Grandfathered user should be eligible for SAML regardless of license
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("grandfathered-user");
|
||||
user.setOauthGrandfathered(true);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.NORMAL);
|
||||
|
||||
boolean result = service.isSamlEligible(user);
|
||||
|
||||
assertEquals(true, result, "Grandfathered user should be eligible for SAML");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_nonGrandfatheredUserWithEnterpriseLicense_returnsTrue() {
|
||||
// Non-grandfathered user with ENTERPRISE license should be eligible
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.ENTERPRISE);
|
||||
|
||||
boolean result = service.isSamlEligible(user);
|
||||
|
||||
assertEquals(
|
||||
true,
|
||||
result,
|
||||
"Non-grandfathered user with ENTERPRISE license should be eligible for SAML");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_nonGrandfatheredUserWithServerLicense_returnsFalse() {
|
||||
// Non-grandfathered user with SERVER license should NOT be eligible for SAML
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.SERVER);
|
||||
|
||||
boolean result = service.isSamlEligible(user);
|
||||
|
||||
assertEquals(
|
||||
false,
|
||||
result,
|
||||
"Non-grandfathered user with SERVER license should NOT be eligible for SAML");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_nonGrandfatheredUserWithNoLicense_returnsFalse() {
|
||||
// Non-grandfathered user without license should NOT be eligible
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.NORMAL);
|
||||
|
||||
boolean result = service.isSamlEligible(user);
|
||||
|
||||
assertEquals(
|
||||
false,
|
||||
result,
|
||||
"Non-grandfathered user without ENTERPRISE license should NOT be eligible for SAML");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_newUserWithEnterpriseLicense_returnsTrue() {
|
||||
// New user (null) with ENTERPRISE license should be eligible for auto-creation
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.ENTERPRISE);
|
||||
|
||||
boolean result = service.isSamlEligible(null);
|
||||
|
||||
assertEquals(
|
||||
true,
|
||||
result,
|
||||
"New user with ENTERPRISE license should be eligible for SAML auto-creation");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_newUserWithServerLicense_returnsFalse() {
|
||||
// New user (null) with SERVER license should NOT be eligible for SAML
|
||||
when(licenseKeyChecker.getPremiumLicenseEnabledResult()).thenReturn(License.SERVER);
|
||||
|
||||
boolean result = service.isSamlEligible(null);
|
||||
|
||||
assertEquals(
|
||||
false,
|
||||
result,
|
||||
"New user with SERVER license should NOT be eligible for SAML (requires ENTERPRISE)");
|
||||
}
|
||||
|
||||
@Test
|
||||
void isSamlEligible_licenseCheckerUnavailable_returnsFalse() {
|
||||
// If LicenseKeyChecker is unavailable, SAML should be blocked
|
||||
when(licenseKeyCheckerProvider.getIfAvailable()).thenReturn(null);
|
||||
|
||||
stirling.software.proprietary.security.model.User user =
|
||||
new stirling.software.proprietary.security.model.User();
|
||||
user.setUsername("test-user");
|
||||
user.setOauthGrandfathered(false);
|
||||
|
||||
boolean result = service.isSamlEligible(user);
|
||||
|
||||
assertEquals(false, result, "SAML should be blocked when LicenseKeyChecker is unavailable");
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ repositories {
|
||||
|
||||
allprojects {
|
||||
group = 'stirling.software'
|
||||
version = '2.0.3'
|
||||
version = '2.1.2'
|
||||
|
||||
configurations.configureEach {
|
||||
exclude group: 'commons-logging', module: 'commons-logging'
|
||||
|
||||
@@ -8,36 +8,33 @@
|
||||
|
||||
Fork Stirling-PDF and create a new branch out of `main`.
|
||||
|
||||
Then add a reference to the language in the navbar by adding a new language entry to the dropdown:
|
||||
## Frontend Translation Files (TOML Format)
|
||||
|
||||
- Edit the file: [languages.html](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/app/core/src/main/resources/templates/fragments/languages.html)
|
||||
### Add Language Directory and Translation File
|
||||
|
||||
1. Create a new language directory in `frontend/public/locales/`
|
||||
- Use hyphenated format: `pl-PL` (not underscore)
|
||||
|
||||
For example, to add Polish, you would add:
|
||||
2. Copy the reference translation file:
|
||||
- Source: `frontend/public/locales/en-GB/translation.toml`
|
||||
- Destination: `frontend/public/locales/pl-PL/translation.toml`
|
||||
|
||||
```html
|
||||
<div th:replace="~{fragments/languageEntry :: languageEntry ('pl_PL', 'Polski')}" ></div>
|
||||
```
|
||||
3. Translate all entries in the TOML file
|
||||
- Keep the TOML structure intact
|
||||
- Preserve all placeholders like `{n}`, `{total}`, `{filename}`, `{{variable}}`
|
||||
- See `scripts/translations/README.md` for translation tools and workflows
|
||||
|
||||
The `data-bs-language-code` is the code used to reference the file in the next step.
|
||||
4. Update the language selector in the frontend to include your new language
|
||||
|
||||
### Add Language Property File
|
||||
|
||||
Start by copying the existing English property file:
|
||||
|
||||
- [messages_en_GB.properties](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/app/core/src/main/resources/messages_en_GB.properties)
|
||||
|
||||
Copy and rename it to `messages_{your data-bs-language-code here}.properties`. In the Polish example, you would set the name to `messages_pl_PL.properties`.
|
||||
|
||||
Then simply translate all property entries within that file and make a Pull Request (PR) into `main` for others to use!
|
||||
|
||||
If you do not have a Java IDE, I am happy to verify that the changes work once you raise the PR (but I won't be able to verify the translations themselves).
|
||||
Then make a Pull Request (PR) into `main` for others to use!
|
||||
|
||||
## Handling Untranslatable Strings
|
||||
|
||||
Sometimes, certain strings in the properties file may not require translation because they are the same in the target language or are universal (like names of protocols, certain terminologies, etc.). To ensure accurate statistics for language progress, these strings should be added to the `ignore_translation.toml` file located in the `scripts` directory. This will exclude them from the translation progress calculations.
|
||||
Sometimes, certain strings may not require translation because they are the same in the target language or are universal (like names of protocols, certain terminologies, etc.). To ensure accurate statistics for language progress, these strings should be added to the `ignore_translation.toml` file located in the `scripts` directory. This will exclude them from the translation progress calculations.
|
||||
|
||||
For example, if the English string `error=Error` does not need translation in Polish, add it to the `ignore_translation.toml` under the Polish section:
|
||||
For example, if the English string `error` does not need translation in Polish, add it to the `ignore_translation.toml` under the Polish section:
|
||||
|
||||
**Note**: Use underscores in `ignore_translation.toml` even though frontend uses hyphens (e.g., `pl_PL` not `pl-PL`)
|
||||
|
||||
```toml
|
||||
[pl_PL]
|
||||
@@ -50,27 +47,27 @@ ignore = [
|
||||
## Add New Translation Tags
|
||||
|
||||
> [!IMPORTANT]
|
||||
> If you add any new translation tags, they must first be added to the `messages_en_GB.properties` file. This ensures consistency across all language files.
|
||||
> If you add any new translation tags, they must first be added to the `en-GB/translation.toml` file. This ensures consistency across all language files.
|
||||
|
||||
- New translation tags **must be added** to the `messages_en_GB.properties` file to maintain a reference for other languages.
|
||||
- After adding the new tags to `messages_en_GB.properties`, add and translate them in the respective language file (e.g., `messages_pl_PL.properties`).
|
||||
- New translation tags **must be added** to `frontend/public/locales/en-GB/translation.toml` to maintain a reference for other languages.
|
||||
- After adding the new tags to `en-GB/translation.toml`, add and translate them in the respective language file (e.g., `pl-PL/translation.toml`).
|
||||
- Use the scripts in `scripts/translations/` to validate and manage translations (see `scripts/translations/README.md`)
|
||||
|
||||
Make sure to place the entry under the correct language section. This helps maintain the accuracy of translation progress statistics and ensures that the translation tool or scripts do not misinterpret the completion rate.
|
||||
|
||||
### Use this code to perform a local check
|
||||
### Validation Commands
|
||||
|
||||
#### Windows command
|
||||
|
||||
```powershell
|
||||
python .github/scripts/check_language_properties.py --reference-file app\core\src\main\resources\messages_en_GB.properties --branch "" --files app\core\src\main\resources\messages_pl_PL.properties
|
||||
|
||||
python .github/scripts/check_language_properties.py --reference-file app\core\src\main\resources\messages_en_GB.properties --branch "" --check-file app\core\src\main\resources\messages_pl_PL.properties
|
||||
```
|
||||
|
||||
#### Linux command
|
||||
Use the translation scripts in `scripts/translations/` directory:
|
||||
|
||||
```bash
|
||||
python3 .github/scripts/check_language_properties.py --reference-file app/core/src/main/resources/messages_en_GB.properties --branch "" --files app/core/src/main/resources/messages_pl_PL.properties
|
||||
# Analyze translation progress
|
||||
python3 scripts/translations/translation_analyzer.py --language pl-PL
|
||||
|
||||
python3 .github/scripts/check_language_properties.py --reference-file app/core/src/main/resources/messages_en_GB.properties --branch "" --check-file app/core/src/main/resources/messages_pl_PL.properties
|
||||
# Validate TOML structure
|
||||
python3 scripts/translations/validate_json_structure.py --language pl-PL
|
||||
|
||||
# Validate placeholders
|
||||
python3 scripts/translations/validate_placeholders.py --language pl-PL
|
||||
```
|
||||
|
||||
See `scripts/translations/README.md` for complete documentation.
|
||||
|
||||
Generated
+41
-16
@@ -456,6 +456,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
@@ -499,6 +500,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
@@ -579,6 +581,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/core/-/core-1.5.0.tgz",
|
||||
"integrity": "sha512-Yrh9XoVaT8cUgzgqpJ7hx5wg6BqQrCFirqqlSwVb+Ly9oNn4fZbR9GycIWmzJOU5XBnaOJjXfQSaDyoNP0woNA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/engines": "1.5.0",
|
||||
"@embedpdf/models": "1.5.0"
|
||||
@@ -678,6 +681,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-history/-/plugin-history-1.5.0.tgz",
|
||||
"integrity": "sha512-p7PTNNaIr4gH3jLwX+eLJe1DeUXgi21kVGN6SRx/pocH8esg4jqoOeD/YiRRZoZnPOiy0jBXVhkPkwSmY7a2hQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -694,6 +698,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-interaction-manager/-/plugin-interaction-manager-1.5.0.tgz",
|
||||
"integrity": "sha512-ckHgTfvkW6c5Ta7Mc+Dl9C2foVnvEpqEJ84wyBnqrU0OWbe/jsiPhyKBVeartMGqNI/kVfaQTXupyrKhekAVmg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -711,6 +716,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-loader/-/plugin-loader-1.5.0.tgz",
|
||||
"integrity": "sha512-P4YpIZfaW69etYIjphyaL4cGl2pB14h3OdTE0tRQ2pZYZHFLTvlt4q9B3PVSdhlSrHK5nob7jfLGon2U7xCslg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -764,6 +770,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-render/-/plugin-render-1.5.0.tgz",
|
||||
"integrity": "sha512-ywwSj0ByrlkvrJIHKRzqxARkOZriki8VJUC+T4MV8fGyF4CzvCRJyKlPktahFz+VxhoodqTh7lBCib68dH+GvA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -798,6 +805,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-scroll/-/plugin-scroll-1.5.0.tgz",
|
||||
"integrity": "sha512-RNmTZCZ8X1mA8cw9M7TMDuhO9GtkOalGha2bBL3En3D1IlDRS7PzNNMSMV7eqT7OQICSTltlpJ8p8Qi5esvL/Q==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -834,6 +842,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-selection/-/plugin-selection-1.5.0.tgz",
|
||||
"integrity": "sha512-zrxLBAZQoPswDuf9q9DrYaQc6B0Ysc2U1hueTjNH/4+ydfl0BFXZkKR63C2e3YmWtXvKjkoIj0GyPzsiBORLUw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -909,6 +918,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@embedpdf/plugin-viewport/-/plugin-viewport-1.5.0.tgz",
|
||||
"integrity": "sha512-G8GDyYRhfehw72+r4qKkydnA5+AU8qH67g01Y12b0DzI0VIzymh/05Z4dK8DsY3jyWPXJfw2hlg5+KDHaMBHgQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@embedpdf/models": "1.5.0"
|
||||
},
|
||||
@@ -1064,6 +1074,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",
|
||||
"integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.3",
|
||||
"@emotion/babel-plugin": "^11.13.5",
|
||||
@@ -1107,6 +1118,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz",
|
||||
"integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.3",
|
||||
"@emotion/babel-plugin": "^11.13.5",
|
||||
@@ -2137,6 +2149,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@mantine/core/-/core-8.3.6.tgz",
|
||||
"integrity": "sha512-paTl+0x+O/QtgMtqVJaG8maD8sfiOdgPmLOyG485FmeGZ1L3KMdEkhxZtmdGlDFsLXhmMGQ57ducT90bvhXX5A==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@floating-ui/react": "^0.27.16",
|
||||
"clsx": "^2.1.1",
|
||||
@@ -2187,6 +2200,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-8.3.6.tgz",
|
||||
"integrity": "sha512-liHfaWXHAkLjJy+Bkr29UsCwAoDQ/a64WrM67lksx8F0qqyjR5RQH8zVlhuOjdpQnwtlUkE/YiTvbJiPcoI0bw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"react": "^18.x || ^19.x"
|
||||
}
|
||||
@@ -2254,6 +2268,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@mui/material/-/material-7.3.5.tgz",
|
||||
"integrity": "sha512-8VVxFmp1GIm9PpmnQoCoYo0UWHoOrdA57tDL62vkpzEgvb/d71Wsbv4FRg7r1Gyx7PuSo0tflH34cdl/NvfHNQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.28.4",
|
||||
"@mui/core-downloads-tracker": "^7.3.5",
|
||||
@@ -3186,6 +3201,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@stripe/stripe-js/-/stripe-js-7.9.0.tgz",
|
||||
"integrity": "sha512-ggs5k+/0FUJcIgNY08aZTqpBTtbExkJMYMLSMwyucrhtWexVOEY1KJmhBsxf+E/Q15f5rbwBpj+t0t2AW2oCsQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12.16"
|
||||
}
|
||||
@@ -3304,7 +3320,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.6.tgz",
|
||||
"integrity": "sha512-4awhxtMh4cx9blePWl10HRHj8Iivtqj+2QdDCSMDzxG+XKa9+VCNupQuCuvzEhYPzZSrX+0gC+0lHA/0fFKKQQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"acorn": "^8.9.0"
|
||||
}
|
||||
@@ -4081,6 +4096,7 @@
|
||||
"integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.10.4",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
@@ -4409,6 +4425,7 @@
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.2.tgz",
|
||||
"integrity": "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"csstype": "^3.0.2"
|
||||
}
|
||||
@@ -4419,6 +4436,7 @@
|
||||
"integrity": "sha512-9KQPoO6mZCi7jcIStSnlOWn2nEF3mNmyr3rIAsGnAbQKYbRLyqmeSc39EVgtxXVia+LMT8j3knZLAZAh+xLmrw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@types/react": "^19.2.0"
|
||||
}
|
||||
@@ -4488,6 +4506,7 @@
|
||||
"integrity": "sha512-6m1I5RmHBGTnUGS113G04DMu3CpSdxCAU/UvtjNWL4Nuf3MW9tQhiJqRlHzChIkhy6kZSAQmc+I1bcGjE3yNKg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.46.3",
|
||||
"@typescript-eslint/types": "8.46.3",
|
||||
@@ -5201,7 +5220,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.24.tgz",
|
||||
"integrity": "sha512-BM8kBhtlkkbnyl4q+HiF5R5BL0ycDPfihowulm02q3WYp2vxgPcJuZO866qa/0u3idbMntKEtVNuAUp5bw4teg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.5.24"
|
||||
}
|
||||
@@ -5211,7 +5229,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.24.tgz",
|
||||
"integrity": "sha512-RYP/byyKDgNIqfX/gNb2PB55dJmM97jc9wyF3jK7QUInYKypK2exmZMNwnjueWwGceEkP6NChd3D2ZVEp9undQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@vue/reactivity": "3.5.24",
|
||||
"@vue/shared": "3.5.24"
|
||||
@@ -5222,7 +5239,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.24.tgz",
|
||||
"integrity": "sha512-Z8ANhr/i0XIluonHVjbUkjvn+CyrxbXRIxR7wn7+X7xlcb7dJsfITZbkVOeJZdP8VZwfrWRsWdShH6pngMxRjw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@vue/reactivity": "3.5.24",
|
||||
"@vue/runtime-core": "3.5.24",
|
||||
@@ -5235,7 +5251,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.24.tgz",
|
||||
"integrity": "sha512-Yh2j2Y4G/0/4z/xJ1Bad4mxaAk++C2v4kaa8oSYTMJBJ00/ndPuxCnWeot0/7/qafQFLh5pr6xeV6SdMcE/G1w==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@vue/compiler-ssr": "3.5.24",
|
||||
"@vue/shared": "3.5.24"
|
||||
@@ -5262,6 +5277,7 @@
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
@@ -5669,7 +5685,6 @@
|
||||
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
|
||||
"integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
@@ -5946,6 +5961,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.8.19",
|
||||
"caniuse-lite": "^1.0.30001751",
|
||||
@@ -6993,7 +7009,8 @@
|
||||
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1521046.tgz",
|
||||
"integrity": "sha512-vhE6eymDQSKWUXwwA37NtTTVEzjtGVfDr3pRbsWEQ5onH/Snp2c+2xZHWJJawG/0hCCJLRGt4xVtEVUVILol4w==",
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause"
|
||||
"license": "BSD-3-Clause",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/dezalgo": {
|
||||
"version": "1.0.4",
|
||||
@@ -7388,6 +7405,7 @@
|
||||
"integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
@@ -7558,6 +7576,7 @@
|
||||
"integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@rtsao/scc": "^1.1.0",
|
||||
"array-includes": "^3.1.9",
|
||||
@@ -7724,8 +7743,7 @@
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz",
|
||||
"integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/espree": {
|
||||
"version": "10.4.0",
|
||||
@@ -7790,7 +7808,6 @@
|
||||
"resolved": "https://registry.npmjs.org/esrap/-/esrap-2.1.2.tgz",
|
||||
"integrity": "sha512-DgvlIQeowRNyvLPWW4PT7Gu13WznY288Du086E751mwwbsgr29ytBiYeLzAGIo0qk3Ujob0SDk8TiSaM5WQzNg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@jridgewell/sourcemap-codec": "^1.4.15"
|
||||
}
|
||||
@@ -8881,6 +8898,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.27.6"
|
||||
},
|
||||
@@ -9357,7 +9375,6 @@
|
||||
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz",
|
||||
"integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/estree": "^1.0.6"
|
||||
}
|
||||
@@ -9678,6 +9695,7 @@
|
||||
"integrity": "sha512-Pcfm3eZ+eO4JdZCXthW9tCDT3nF4K+9dmeZ+5X39n+Kqz0DDIABRP5CAEOHRFZk8RGuC2efksTJxrjp8EXCunQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@acemir/cssom": "^0.9.19",
|
||||
"@asamuzakjp/dom-selector": "^6.7.3",
|
||||
@@ -10264,8 +10282,7 @@
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
||||
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/locate-path": {
|
||||
"version": "6.0.0",
|
||||
@@ -11411,6 +11428,7 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.11",
|
||||
"picocolors": "^1.1.1",
|
||||
@@ -11690,6 +11708,7 @@
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.27.2.tgz",
|
||||
"integrity": "sha512-5SYSgFKSyhCbk6SrXyMpqjb5+MQBgfvEKE/OC+PujcY34sOpqtr+0AZQtPYx5IA6VxynQ7rUPCtKzyovpj9Bpg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/preact"
|
||||
@@ -12072,6 +12091,7 @@
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
|
||||
"integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -12081,6 +12101,7 @@
|
||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
|
||||
"integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"scheduler": "^0.27.0"
|
||||
},
|
||||
@@ -13592,7 +13613,6 @@
|
||||
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",
|
||||
"integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
@@ -13801,6 +13821,7 @@
|
||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -14102,6 +14123,7 @@
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"devOptional": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -14183,6 +14205,7 @@
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"napi-postinstall": "^0.3.0"
|
||||
},
|
||||
@@ -14387,6 +14410,7 @@
|
||||
"integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"fdir": "^6.5.0",
|
||||
@@ -14538,6 +14562,7 @@
|
||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -14551,6 +14576,7 @@
|
||||
"integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/chai": "^5.2.2",
|
||||
"@vitest/expect": "3.2.4",
|
||||
@@ -15162,8 +15188,7 @@
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.4.tgz",
|
||||
"integrity": "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/zod": {
|
||||
"version": "3.25.76",
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.9 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 9.5 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.4 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 11 KiB |
@@ -163,6 +163,11 @@ unfavorite = "إزالة من المفضلة"
|
||||
fullscreen = "التبديل إلى وضع ملء الشاشة"
|
||||
sidebar = "التبديل إلى وضع الشريط الجانبي"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "لم يتم العثور على الخادم الخلفي"
|
||||
retry = "إعادة المحاولة"
|
||||
unreachable = "لا يمكن للتطبيق حالياً الاتصال بالخادم الخلفي. تحقق من حالة الخادم والاتصال بالشبكة، ثم حاول مرة أخرى."
|
||||
|
||||
[zipWarning]
|
||||
title = "ملف ZIP كبير"
|
||||
message = "هذا الملف ZIP يحتوي على {{count}} ملفات. هل تريد الاستخراج على أي حال؟"
|
||||
@@ -912,6 +917,9 @@ desc = "ابنِ تدفّقات عمل متعددة الخطوات بسلسلة
|
||||
desc = "تراكب ملف PDF فوق آخر"
|
||||
title = "تراكب ملفات PDF"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "محرر نص PDF"
|
||||
desc = "حرّر النصوص والصور الموجودة داخل ملفات PDF"
|
||||
|
||||
[home.addText]
|
||||
tags = "نص,تعليق,تسمية"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "توقيع مرسوم"
|
||||
defaultImageLabel = "توقيع مرفوع"
|
||||
defaultTextLabel = "توقيع مكتوب"
|
||||
saveButton = "حفظ التوقيع"
|
||||
savePersonal = "حفظ شخصي"
|
||||
saveShared = "حفظ مشترك"
|
||||
saveUnavailable = "أنشئ توقيعاً أولاً لحفظه."
|
||||
noChanges = "التوقيع الحالي محفوظ بالفعل."
|
||||
tempStorageTitle = "تخزين مؤقت في المتصفح"
|
||||
tempStorageDescription = "يتم تخزين التواقيع في متصفحك فقط. ستُفقد إذا حذفت بيانات المتصفح أو بدّلت المتصفح."
|
||||
personalHeading = "تواقيع شخصية"
|
||||
sharedHeading = "تواقيع مشتركة"
|
||||
personalDescription = "أنت فقط من يمكنه رؤية هذه التواقيع."
|
||||
sharedDescription = "يمكن لجميع المستخدمين رؤية هذه التواقيع واستخدامها."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "رسم"
|
||||
@@ -3020,6 +3036,91 @@ title = "الحصول على معلومات عن PDF"
|
||||
header = "الحصول على معلومات عن PDF"
|
||||
submit = "الحصول على المعلومات"
|
||||
downloadJson = "تحميل JSON"
|
||||
processing = "جارٍ استخراج المعلومات..."
|
||||
results = "النتائج"
|
||||
noResults = "شغّل الأداة لإنشاء تقرير."
|
||||
downloads = "التنزيلات"
|
||||
noneDetected = "لم يتم اكتشاف أي شيء"
|
||||
indexTitle = "الفهرس"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "ملخص المعلومات الكامل"
|
||||
shortTitle = "معلومات PDF"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "البيانات الوصفية"
|
||||
formFields = "حقول النماذج"
|
||||
basicInfo = "معلومات أساسية"
|
||||
documentInfo = "معلومات المستند"
|
||||
compliance = "الامتثال"
|
||||
encryption = "التشفير"
|
||||
permissions = "الأذونات"
|
||||
other = "أخرى"
|
||||
perPageInfo = "معلومات لكل صفحة"
|
||||
tableOfContents = "جدول المحتويات"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "المرفقات"
|
||||
embeddedFiles = "ملفات مضمنة"
|
||||
javaScript = "JavaScript"
|
||||
layers = "الطبقات"
|
||||
structureTree = "شجرة البنية"
|
||||
xmp = "بيانات XMP الوصفية"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "الحجم"
|
||||
annotations = "التعليقات التوضيحية"
|
||||
images = "الصور"
|
||||
links = "الروابط"
|
||||
fonts = "الخطوط"
|
||||
xobjects = "عدد كائنات XObject"
|
||||
multimedia = "وسائط متعددة"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "الصفحات"
|
||||
fileSize = "حجم الملف"
|
||||
pdfVersion = "إصدار PDF"
|
||||
language = "اللغة"
|
||||
title = "ملخص PDF"
|
||||
author = "المؤلف"
|
||||
created = "تم الإنشاء"
|
||||
modified = "تم التعديل"
|
||||
permsAll = "جميع الأذونات مسموح بها"
|
||||
permsRestricted = "{{count}} قيود"
|
||||
permsMixed = "بعض الأذونات مقيّدة"
|
||||
hasCompliance = "يتضمن معايير امتثال"
|
||||
noCompliance = "لا توجد معايير امتثال"
|
||||
basic = "معلومات أساسية"
|
||||
documentInfo = "معلومات المستند"
|
||||
securityTitle = "حالة الأمان"
|
||||
technical = "تقني"
|
||||
overviewTitle = "نظرة عامة على PDF"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "PDF مشفّر - توجد حماية بكلمة مرور"
|
||||
unencrypted = "PDF غير مُشفّر - لا توجد حماية بكلمة مرور"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "الصور"
|
||||
fonts = "الخطوط"
|
||||
formFields = "حقول النماذج"
|
||||
embeddedFiles = "ملفات مضمنة"
|
||||
javaScript = "JavaScript"
|
||||
layers = "الطبقات"
|
||||
bookmarks = "الإشارات المرجعية"
|
||||
multimedia = "وسائط متعددة"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "مستند بلا عنوان"
|
||||
unknown = "مؤلف غير معروف"
|
||||
text = "هذا ملف PDF يحتوي على {{pages}} صفحة بعنوان {{title}} وتم إنشاؤه بواسطة {{author}} (إصدار PDF {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "تعذّر معالجة بعض الملفات."
|
||||
unexpected = "حدث خطأ غير متوقع أثناء الاستخراج."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "اكتمل الاستخراج"
|
||||
|
||||
[extractPage]
|
||||
tags = "استخراج"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "الرجاء تسجيل الدخول"
|
||||
ssoSignIn = "تسجيل الدخول عبر تسجيل الدخول الأحادي"
|
||||
oAuth2AutoCreateDisabled = "تم تعطيل الإنشاء التلقائي لمستخدم OAuth2"
|
||||
oAuth2AdminBlockedUser = "تم حظر تسجيل أو تسجيل دخول المستخدمين غير المسجلين حاليًا. يرجى الاتصال بالمسؤول."
|
||||
oAuth2RequiresLicense = "يتطلب تسجيل الدخول عبر OAuth/SSO ترخيصاً مدفوعاً (Server أو Enterprise). يرجى الاتصال بالمسؤول لترقية باقتك."
|
||||
saml2RequiresLicense = "يتطلب تسجيل الدخول عبر SAML ترخيصاً مدفوعاً (Server أو Enterprise). يرجى الاتصال بالمسؤول لترقية باقتك."
|
||||
maxUsersReached = "تم الوصول إلى الحد الأقصى لعدد المستخدمين ضمن ترخيصك الحالي. يرجى الاتصال بالمسؤول لترقية باقتك أو إضافة مقاعد إضافية."
|
||||
oauth2RequestNotFound = "لم يتم العثور على طلب التفويض"
|
||||
oauth2InvalidUserInfoResponse = "استجابة معلومات المستخدم غير صالحة"
|
||||
oauth2invalidRequest = "طلب غير صالح"
|
||||
@@ -3771,7 +3875,7 @@ version = "الإصدار الحالي"
|
||||
title = "توثيق API"
|
||||
header = "توثيق API"
|
||||
desc = "عرض واختبار نقاط نهاية Stirling PDF API"
|
||||
tags = "api,documentation,swagger,endpoints,development"
|
||||
tags = "api,توثيق,swagger,نقاط النهاية,تطوير"
|
||||
|
||||
[cookieBanner.popUp]
|
||||
title = "كيف نستخدم ملفات تعريف الارتباط"
|
||||
@@ -3809,8 +3913,8 @@ title = "التحليلات"
|
||||
description = "تساعدنا هذه الملفات على فهم كيفية استخدام أدواتنا، كي نركّز على بناء الميزات الأكثر قيمة لمجتمعنا. كن مطمئنًا—Stirling PDF لا يمكنه ولن يتتبع محتوى المستندات التي تعمل عليها."
|
||||
|
||||
[cookieBanner.services]
|
||||
posthog = "PostHog Analytics"
|
||||
scarf = "Scarf Pixel"
|
||||
posthog = "تحليلات PostHog"
|
||||
scarf = "Scarf بكسل"
|
||||
|
||||
[removeMetadata]
|
||||
submit = "إزالة البيانات الوصفية"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "ملاءمة للعرض"
|
||||
actualSize = "الحجم الفعلي"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "لا يمكن معاينة الملف"
|
||||
dualPageView = "عرض صفحتين"
|
||||
firstPage = "الصفحة الأولى"
|
||||
lastPage = "الصفحة الأخيرة"
|
||||
previousPage = "الصفحة السابقة"
|
||||
nextPage = "الصفحة التالية"
|
||||
onlyPdfSupported = "عارض الملفات يدعم ملفات PDF فقط. يبدو أن هذا الملف بتنسيق مختلف."
|
||||
previousPage = "الصفحة السابقة"
|
||||
singlePageView = "عرض صفحة واحدة"
|
||||
unknownFile = "ملف غير معروف"
|
||||
zoomIn = "تكبير"
|
||||
zoomOut = "تصغير"
|
||||
singlePageView = "عرض صفحة واحدة"
|
||||
dualPageView = "عرض صفحتين"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "إغلاق الصفحات المحددة"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "تبديل الشريط الجانبي"
|
||||
exportSelected = "تصدير الصفحات المحددة"
|
||||
toggleAnnotations = "تبديل ظهور التعليقات التوضيحية"
|
||||
annotationMode = "تبديل وضع التعليقات"
|
||||
print = "طباعة PDF"
|
||||
draw = "رسم"
|
||||
save = "حفظ"
|
||||
saveChanges = "حفظ التغييرات"
|
||||
@@ -4494,6 +4602,7 @@ description = "عنوان URL أو اسم الملف الخاص بـ Impressum (
|
||||
title = "الممتاز والمؤسسي"
|
||||
description = "تهيئة مفتاح الترخيص للمزايا الممتازة أو المؤسسية."
|
||||
license = "تهيئة الترخيص"
|
||||
noInput = "يرجى تقديم مفتاح ترخيص أو ملف"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "هل لديك مفتاح ترخيص أو ملف شهادة؟"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "لا يمكن التراجع عن استبدال مفتاح الترخ
|
||||
line2 = "سيُفقد ترخيصك السابق نهائياً ما لم تكن قد احتفظت بنسخة احتياطية منه في مكان آخر."
|
||||
line3 = "مهم: احتفظ بمفاتيح الترخيص خاصة وآمنة. لا تشاركها علناً أبداً."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "مفتاح الترخيص"
|
||||
file = "ملف الشهادة"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "ملف شهادة الترخيص"
|
||||
description = "قم بتحميل ملف الترخيص .lic أو .cert من عمليات الشراء دون اتصال"
|
||||
choose = "اختر ملف الترخيص"
|
||||
selected = "المحدد: {{filename}} ({{size}})"
|
||||
successMessage = "تم تحميل ملف الترخيص وتفعيله بنجاح. لا يلزم إعادة التشغيل."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "الترخيص النشط"
|
||||
file = "المصدر: ملف الترخيص ({{path}})"
|
||||
key = "المصدر: مفتاح الترخيص"
|
||||
type = "النوع: {{type}}"
|
||||
noInput = "يرجى تقديم مفتاح ترخيص أو تحميل ملف شهادة"
|
||||
success = "نجاح"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "تمكين الميزات الممتازة"
|
||||
description = "تمكين التحقق من مفتاح الترخيص لميزات Pro/المؤسسة"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} محدد"
|
||||
download = "تنزيل"
|
||||
delete = "حذف"
|
||||
unsupported = "غير مدعوم"
|
||||
active = "نشط"
|
||||
addToUpload = "إضافة إلى الرفع"
|
||||
closeFile = "إغلاق الملف"
|
||||
deleteAll = "حذف الكل"
|
||||
loadingFiles = "جارٍ تحميل الملفات..."
|
||||
noFiles = "لا توجد ملفات متاحة"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "الترقية الآن →"
|
||||
freeTitle = "ترخيص الخادم"
|
||||
overLimitTitle = "مطلوب ترخيص خادم"
|
||||
overLimitBody = "ترخيصنا يسمح حتى <strong>{{freeTierLimit}}</strong> مستخدمين مجاناً لكل خادم. لديك <strong>{{overLimitUserCopy}}</strong> مستخدمي Stirling. للمتابعة دون انقطاع، ارقَ إلى خطة خادم Stirling - <strong>مقاعد غير محدودة</strong>، تحرير نصوص PDF، وتحكم إداري كامل مقابل $99/خادم/شهرياً."
|
||||
freeBody = "ترخيص <strong>Open-Core</strong> لدينا يسمح حتى <strong>{{freeTierLimit}}</strong> مستخدمين مجاناً لكل خادم. للتوسع بسلاسة والحصول على وصول مبكر إلى <strong>أداة تحرير نصوص PDF</strong> الجديدة، نوصي بخطة خادم Stirling - تحرير كامل و<strong>مقاعد غير محدودة</strong> مقابل $99/خادم/شهرياً."
|
||||
freeBody = "يتيح ترخيصنا <strong>Open-Core</strong> ما يصل إلى <strong>{{freeTierLimit}}</strong> مستخدمًا مجانًا لكل خادم. للتوسع دون انقطاع، نوصي بخطة Stirling Server - <strong>مقاعد غير محدودة</strong> و<strong>دعم SSO</strong> مقابل $99/server/mo."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "تنزيل"
|
||||
@@ -5237,6 +5367,31 @@ error = "فشل تحديث حالة المستخدم"
|
||||
success = "تم حذف المستخدم بنجاح"
|
||||
error = "فشل حذف المستخدم"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "تغيير كلمة المرور"
|
||||
title = "تغيير كلمة المرور"
|
||||
subtitle = "تحديث كلمة المرور لـ"
|
||||
newPassword = "كلمة مرور جديدة"
|
||||
confirmPassword = "تأكيد كلمة المرور"
|
||||
placeholder = "أدخل كلمة مرور جديدة"
|
||||
confirmPlaceholder = "أعد إدخال كلمة المرور الجديدة"
|
||||
passwordRequired = "يرجى إدخال كلمة مرور جديدة"
|
||||
passwordMismatch = "كلمتا المرور غير متطابقتين"
|
||||
generateRandom = "إنشاء كلمة مرور آمنة"
|
||||
generatedPreview = "كلمة المرور المُنشأة:"
|
||||
copyTooltip = "نسخ إلى الحافظة"
|
||||
copiedToClipboard = "تم نسخ كلمة المرور إلى الحافظة"
|
||||
copyFailed = "فشل نسخ كلمة المرور"
|
||||
sendEmail = "إرسال بريد إلكتروني للمستخدم حول هذا التغيير"
|
||||
includePassword = "تضمين كلمة المرور الجديدة في البريد الإلكتروني"
|
||||
forcePasswordChange = "إلزام المستخدم بتغيير كلمة المرور عند تسجيل الدخول التالي"
|
||||
emailUnavailable = "بريد هذا المستخدم الإلكتروني غير صالح. تم تعطيل الإشعارات."
|
||||
smtpDisabled = "تتطلب إشعارات البريد الإلكتروني تفعيل SMTP في الإعدادات."
|
||||
notifyOnly = "سيتم إرسال بريد إلكتروني بدون كلمة المرور لإبلاغ المستخدم بأن المشرف قد غيّرها."
|
||||
submit = "تحديث كلمة المرور"
|
||||
success = "تم تحديث كلمة المرور بنجاح"
|
||||
error = "فشل تحديث كلمة المرور"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "دعوة عبر البريد الإلكتروني"
|
||||
description = "اكتب أو الصق عناوين البريد الإلكتروني أدناه مفصولة بفواصل. سيتلقى المستخدمون بيانات اعتماد تسجيل الدخول عبر البريد الإلكتروني."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "user1@example.com, user2@example.com"
|
||||
emailsRequired = "مطلوب عنوان بريد إلكتروني واحد على الأقل"
|
||||
submit = "إرسال الدعوات"
|
||||
success = "تمت دعوة المستخدم/المستخدمين بنجاح"
|
||||
partialSuccess = "فشلت بعض الدعوات"
|
||||
partialFailure = "فشل بعض الدعوات"
|
||||
allFailed = "فشلت دعوة المستخدمين"
|
||||
error = "فشل إرسال الدعوات"
|
||||
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "سجّل الدخول بحساب Stirling الخاص بك"
|
||||
[setup.selfhosted]
|
||||
title = "سجّل الدخول إلى الخادم"
|
||||
subtitle = "أدخل بيانات اعتماد الخادم"
|
||||
link = "أو الاتصال بحساب مُستضاف ذاتيًا"
|
||||
|
||||
[setup.server]
|
||||
title = "الاتصال بالخادم"
|
||||
@@ -5788,6 +5944,14 @@ description = "أدخل عنوان URL الكامل لخادم Stirling PDF ال
|
||||
emptyUrl = "يرجى إدخال عنوان URL للخادم"
|
||||
unreachable = "تعذّر الاتصال بالخادم"
|
||||
testFailed = "فشل اختبار الاتصال"
|
||||
configFetch = "فشل في جلب إعدادات الخادم. يرجى التحقق من عنوان URL والمحاولة مرة أخرى."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "تسجيل الدخول غير مفعّل"
|
||||
body = "لا يحتوي هذا الخادم على تسجيل دخول مفعّل. للاتصال بهذا الخادم، يجب تمكين المصادقة:"
|
||||
step1 = "عيّن DOCKER_ENABLE_SECURITY=true في بيئتك"
|
||||
step2 = "أو عيّن security.enableLogin=true في settings.yml"
|
||||
step3 = "أعد تشغيل الخادم"
|
||||
|
||||
[setup.login]
|
||||
title = "تسجيل الدخول"
|
||||
@@ -5797,6 +5961,13 @@ submit = "تسجيل الدخول"
|
||||
signInWith = "تسجيل الدخول باستخدام"
|
||||
oauthPending = "جارٍ فتح المتصفح للمصادقة..."
|
||||
orContinueWith = "أو المتابعة بالبريد الإلكتروني"
|
||||
serverRequirement = "ملاحظة: يجب أن يكون تسجيل الدخول مفعّلاً على الخادم."
|
||||
showInstructions = "كيفية التمكين؟"
|
||||
hideInstructions = "إخفاء الإرشادات"
|
||||
instructions = "لتمكين تسجيل الدخول على خادم Stirling PDF الخاص بك:"
|
||||
instructionsEnvVar = "عيّن متغيّر البيئة:"
|
||||
instructionsOrYml = "أو في settings.yml:"
|
||||
instructionsRestart = "ثم أعد تشغيل الخادم لتصبح التغييرات نافذة."
|
||||
|
||||
[setup.login.username]
|
||||
label = "اسم المستخدم"
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "وصول مبكر"
|
||||
reset = "إعادة تعيين التغييرات"
|
||||
downloadJson = "تنزيل JSON"
|
||||
generatePdf = "توليد PDF"
|
||||
saveChanges = "حفظ التغييرات"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "ضبط النص تلقائياً ليتناسب مع الصناديق"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "هذا العارض بنسخة ألفا ولا يزال يتطور—ق
|
||||
[pdfTextEditor.empty]
|
||||
title = "لم يتم تحميل مستند"
|
||||
subtitle = "حمّل ملف PDF أو JSON لبدء تحرير محتوى النص."
|
||||
dropzone = "اسحب وأفلت ملف PDF أو JSON هنا، أو انقر للاستعراض"
|
||||
dropzoneWithFiles = "حدد ملفًا من علامة تبويب الملفات، أو اسحب وأفلت ملف PDF أو JSON هنا، أو انقر للاستعراض"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "مرحباً بك في محرر نصوص PDF (وصول مبكر)"
|
||||
|
||||
@@ -163,6 +163,11 @@ unfavorite = "Seçilmişlərdən çıxar"
|
||||
fullscreen = "Tam ekran rejiminə keç"
|
||||
sidebar = "Yan panel rejiminə keç"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "Backend tapılmadı"
|
||||
retry = "Yenidən cəhd et"
|
||||
unreachable = "Tətbiq hazırda backend-ə qoşula bilmir. Backend-in vəziyyətini və şəbəkə bağlantısını yoxlayın, sonra yenidən cəhd edin."
|
||||
|
||||
[zipWarning]
|
||||
title = "Böyük ZIP faylı"
|
||||
message = "Bu ZIP {{count}} fayl ehtiva edir. Yenə də çıxarılsın?"
|
||||
@@ -912,6 +917,9 @@ desc = "PDF əməliyyatlarını zəncirləyərək çoxaddımlı iş axınları q
|
||||
desc = "Bir PDF-i digərinin üstünə qoyur"
|
||||
title = "Üst-Üstə Qoy"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "PDF Mətn Redaktoru"
|
||||
desc = "PDF-lərin içindəki mövcud mətn və şəkilləri redaktə edin"
|
||||
|
||||
[home.addText]
|
||||
tags = "mətn,şərh,etiket"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "Çəkilmiş imza"
|
||||
defaultImageLabel = "Yüklənmiş imza"
|
||||
defaultTextLabel = "Yazılmış imza"
|
||||
saveButton = "İmzanı saxla"
|
||||
savePersonal = "Şəxsi yadda saxla"
|
||||
saveShared = "Paylaşılanı yadda saxla"
|
||||
saveUnavailable = "Saxlamaq üçün əvvəlcə imza yaradın."
|
||||
noChanges = "Cari imza artıq saxlanıb."
|
||||
tempStorageTitle = "Müvəqqəti brauzer yaddaşı"
|
||||
tempStorageDescription = "İmzalar yalnız brauzerinizdə saxlanılır. Brauzer məlumatlarını təmizləsəniz və ya brauzer dəyişsəniz, itəcək."
|
||||
personalHeading = "Şəxsi imzalar"
|
||||
sharedHeading = "Paylaşılan imzalar"
|
||||
personalDescription = "Bu imzaları yalnız siz görə bilirsiniz."
|
||||
sharedDescription = "Bütün istifadəçilər bu imzaları görə və istifadə edə bilərlər."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "Rəsm"
|
||||
@@ -3020,6 +3036,91 @@ title = "PDF Barəsində Məlumat Əldə Et"
|
||||
header = "PDF Barəsində Məlumat Əldə Et"
|
||||
submit = "Məlumat Əldə Et"
|
||||
downloadJson = "JSON yüklə"
|
||||
processing = "Məlumat çıxarılır..."
|
||||
results = "Nəticələr"
|
||||
noResults = "Hesabat yaratmaq üçün aləti işə salın."
|
||||
downloads = "Yükləmələr"
|
||||
noneDetected = "Heç nə aşkar edilmədi"
|
||||
indexTitle = "İndeks"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "Tam məlumat xülasəsi"
|
||||
shortTitle = "PDF Məlumatı"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "Metaməlumat"
|
||||
formFields = "Forma sahələri"
|
||||
basicInfo = "Əsas Məlumat"
|
||||
documentInfo = "Sənəd Məlumatı"
|
||||
compliance = "Uyğunluq"
|
||||
encryption = "Şifrələmə"
|
||||
permissions = "İcazələr"
|
||||
other = "Digər"
|
||||
perPageInfo = "Hər səhifə üzrə məlumat"
|
||||
tableOfContents = "Mündəricat"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "Əlavələr"
|
||||
embeddedFiles = "Gömülü fayllar"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Qatlar"
|
||||
structureTree = "Struktur ağacı"
|
||||
xmp = "XMPMetadata"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "Ölçü"
|
||||
annotations = "Annotasiyalar"
|
||||
images = "Şəkillər"
|
||||
links = "Keçidlər"
|
||||
fonts = "Şriftlər"
|
||||
xobjects = "XObject sayları"
|
||||
multimedia = "Multimedia"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "Səhifələr"
|
||||
fileSize = "Fayl Ölçüsü"
|
||||
pdfVersion = "PDF Versiyası"
|
||||
language = "Dil"
|
||||
title = "PDF Xülasəsi"
|
||||
author = "Müəllif"
|
||||
created = "Yaradılıb"
|
||||
modified = "Dəyişdirilib"
|
||||
permsAll = "Bütün icazələr verilib"
|
||||
permsRestricted = "{{count}} məhdudiyyət"
|
||||
permsMixed = "Bəzi icazələr məhdudlaşdırılıb"
|
||||
hasCompliance = "Uyğunluq standartları mövcuddur"
|
||||
noCompliance = "Uyğunluq standartları yoxdur"
|
||||
basic = "Əsas Məlumat"
|
||||
documentInfo = "Sənəd Məlumatı"
|
||||
securityTitle = "Təhlükəsizlik Vəziyyəti"
|
||||
technical = "Texniki"
|
||||
overviewTitle = "PDF İcmalı"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "Şifrələnmiş PDF - Parol ilə qorunur"
|
||||
unencrypted = "Şifrələnməmiş PDF - Parol qorunması yoxdur"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "Şəkillər"
|
||||
fonts = "Şriftlər"
|
||||
formFields = "Forma sahələri"
|
||||
embeddedFiles = "Gömülü fayllar"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Qatlar"
|
||||
bookmarks = "Əlfəcinlər"
|
||||
multimedia = "Multimedia"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "adsız sənəd"
|
||||
unknown = "Naməlum müəllif"
|
||||
text = "Bu, {{author}} tərəfindən yaradılmış, {{title}} adlı, {{pages}} səhifəlik PDF-dir (PDF versiyası {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "Bəzi faylları emal etmək mümkün olmadı."
|
||||
unexpected = "Çıxarılma zamanı gözlənilməz xəta baş verdi."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "Çıxarılma tamamlandı"
|
||||
|
||||
[extractPage]
|
||||
tags = "çıxar"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "Zəhmət olmasa, daxil olun"
|
||||
ssoSignIn = "Single Sign-on vasitəsilə daxil olun"
|
||||
oAuth2AutoCreateDisabled = "OAUTH2 Auto-Create İstifadəçisi Deaktivləşdirilmişdir"
|
||||
oAuth2AdminBlockedUser = "Qeydiyyatdan keçməmiş istifadəçilərin qeydiyyatı və daxil olması hal-hazırda bloklanmışdır. Zəhmət olmasa, administratorla əlaqə saxlayın."
|
||||
oAuth2RequiresLicense = "OAuth/SSO ilə giriş üçün ödənişli lisenziya (Server və ya Enterprise) tələb olunur. Planınızı yüksəltmək üçün administratorla əlaqə saxlayın."
|
||||
saml2RequiresLicense = "SAML ilə giriş üçün ödənişli lisenziya (Server və ya Enterprise) tələb olunur. Planınızı yüksəltmək üçün administratorla əlaqə saxlayın."
|
||||
maxUsersReached = "Mövcud lisenziyanız üçün maksimum istifadəçi sayına çatılıb. Planınızı yüksəltmək və ya əlavə yerlər əlavə etmək üçün administratorla əlaqə saxlayın."
|
||||
oauth2RequestNotFound = "Təsdiqlənmə sorğusu tapılmadı"
|
||||
oauth2InvalidUserInfoResponse = "Yanlış İstifadəçi Məlumatı Cavabı"
|
||||
oauth2invalidRequest = "Etibarsız Sorğu"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "Eninə sığdır"
|
||||
actualSize = "Həqiqi ölçü"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "Faylın önizlənməsi mümkün deyil"
|
||||
dualPageView = "İki Səhifə Görünüşü"
|
||||
firstPage = "Birinci səhifə"
|
||||
lastPage = "Son səhifə"
|
||||
previousPage = "Əvvəlki səhifə"
|
||||
nextPage = "Növbəti səhifə"
|
||||
onlyPdfSupported = "Görüntüləyici yalnız PDF fayllarını dəstəkləyir. Bu fayl fərqli formatda görünür."
|
||||
previousPage = "Əvvəlki səhifə"
|
||||
singlePageView = "Tək Səhifə Görünüşü"
|
||||
unknownFile = "Naməlum fayl"
|
||||
zoomIn = "Böyüt"
|
||||
zoomOut = "Kiçilt"
|
||||
singlePageView = "Tək Səhifə Görünüşü"
|
||||
dualPageView = "İki Səhifə Görünüşü"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "Seçilmiş faylları bağla"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "Yan paneli aç/bağla"
|
||||
exportSelected = "Seçilmiş səhifələri ixrac et"
|
||||
toggleAnnotations = "Annotasiyaların görünməsini dəyiş"
|
||||
annotationMode = "Annotasiya rejimini dəyiş"
|
||||
print = "PDF-i çap et"
|
||||
draw = "Rəsm çək"
|
||||
save = "Yadda saxla"
|
||||
saveChanges = "Dəyişiklikləri yadda saxla"
|
||||
@@ -4407,7 +4515,7 @@ description = "Daha geniş sistem müvəqqəti qovluğunu təmizləyib-təmizlə
|
||||
label = "Proses İcraedicisi Limitləri"
|
||||
description = "Hər icraedici üçün sessiya limitlərini və taym-outları konfiqurasiya edin"
|
||||
libreOffice = "LibreOffice"
|
||||
pdfToHtml = "PDF to HTML"
|
||||
pdfToHtml = "PDF-dən HTML-ə"
|
||||
qpdf = "QPDF"
|
||||
tesseract = "Tesseract OCR"
|
||||
pythonOpenCv = "Python OpenCV"
|
||||
@@ -4494,6 +4602,7 @@ description = "Impressum üçün URL və ya fayl adı (bəzi yurisdiksiyalarda t
|
||||
title = "Premium və Enterprise"
|
||||
description = "Premium və ya enterprise lisenziya açarınızı konfiqurasiya edin."
|
||||
license = "Lisenziya Konfiqurasiyası"
|
||||
noInput = "Zəhmət olmasa lisenziya açarı və ya fayl təqdim edin"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "Lisenziya açarınız və ya sertifikat faylınız var?"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "Cari lisenziya açarının üzərinə yazmaq geri alına bilməz."
|
||||
line2 = "Ehtiyat nüsxəsi yoxdursa, əvvəlki lisenziyanız birdəfəlik itəcək."
|
||||
line3 = "Vacibdir: Lisenziya açarlarını məxfi və təhlükəsiz saxlayın. Heç vaxt onları ictimai paylaşmayın."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "Lisenziya açarı"
|
||||
file = "Sertifikat faylı"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "Lisenziya sertifikat faylı"
|
||||
description = "Oflayn alışdan əldə etdiyiniz .lic və ya .cert lisenziya faylını yükləyin"
|
||||
choose = "Lisenziya faylını seçin"
|
||||
selected = "Seçildi: {{filename}} ({{size}})"
|
||||
successMessage = "Lisenziya faylı uğurla yüklənib və aktivləşdirilib. Yenidən başlatmağa ehtiyac yoxdur."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "Aktiv lisenziya"
|
||||
file = "Mənbə: Lisenziya faylı ({{path}})"
|
||||
key = "Mənbə: Lisenziya açarı"
|
||||
type = "Növ: {{type}}"
|
||||
noInput = "Zəhmət olmasa lisenziya açarı verin və ya sertifikat faylı yükləyin"
|
||||
success = "Uğurlu"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "Premium Xüsusiyyətlərini aktiv et"
|
||||
description = "Pro/enterprise xüsusiyyətləri üçün lisenziya açarı yoxlamalarını aktiv et"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} seçildi"
|
||||
download = "Endir"
|
||||
delete = "Sil"
|
||||
unsupported = "Dəstəklənmir"
|
||||
active = "Aktiv"
|
||||
addToUpload = "Yükləməyə əlavə et"
|
||||
closeFile = "Faylı bağla"
|
||||
deleteAll = "Hamısını sil"
|
||||
loadingFiles = "Fayllar yüklənir..."
|
||||
noFiles = "Fayl mövcud deyil"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "İndi yüksəlt →"
|
||||
freeTitle = "Server lisenziyası"
|
||||
overLimitTitle = "Server lisenziyası tələb olunur"
|
||||
overLimitBody = "Lisenziyalaşmamız hər server üçün pulsuz olaraq maksimum <strong>{{freeTierLimit}}</strong> istifadəçiyə icazə verir. Sizdə <strong>{{overLimitUserCopy}}</strong> Stirling istifadəçisi var. Fasiləsiz davam etmək üçün Stirling Server planına yüksəldin - <strong>limitsiz yerlər</strong>, PDF mətn redaktəsi və tam admin nəzarəti cəmi $99/server/ay."
|
||||
freeBody = "Bizim <strong>Open-Core</strong> lisenziyası hər server üçün pulsuz olaraq maksimum <strong>{{freeTierLimit}}</strong> istifadəçiyə icazə verir. Fasiləsiz miqyaslanmaq və yeni <strong>PDF mətn redaktəsi alətimizə</strong> erkən çıxış əldə etmək üçün Stirling Server planını tövsiyə edirik — tam redaktə və <strong>limitsiz yerlər</strong> $99/server/ay."
|
||||
freeBody = "Bizim <strong>Open-Core</strong> lisenziyalaşdırmamız hər server üçün pulsuz olaraq ən çox <strong>{{freeTierLimit}}</strong> istifadəçiyə icazə verir. Fasiləsiz miqyaslama üçün Stirling Server planını tövsiyə edirik - <strong>limitsiz yerlər</strong> və <strong>SSO dəstəyi</strong> $99/server/ay."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "Yüklə"
|
||||
@@ -5237,6 +5367,31 @@ error = "İstifadəçi statusunu yeniləmək alınmadı"
|
||||
success = "İstifadəçi uğurla silindi"
|
||||
error = "İstifadəçini silmək alınmadı"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "Parolu dəyiş"
|
||||
title = "Parolu dəyiş"
|
||||
subtitle = "Aşağıdakı istifadəçi üçün parolu yeniləyin"
|
||||
newPassword = "Yeni parol"
|
||||
confirmPassword = "Parolu təsdiq edin"
|
||||
placeholder = "Yeni parolu daxil edin"
|
||||
confirmPlaceholder = "Yeni parolu yenidən daxil edin"
|
||||
passwordRequired = "Zəhmət olmasa yeni parolu daxil edin"
|
||||
passwordMismatch = "Parollar uyğun gəlmir"
|
||||
generateRandom = "Təhlükəsiz parol yaradın"
|
||||
generatedPreview = "Yaradılmış parol:"
|
||||
copyTooltip = "Buferə kopyala"
|
||||
copiedToClipboard = "Parol buferə kopyalandı"
|
||||
copyFailed = "Parolu kopyalamaq alınmadı"
|
||||
sendEmail = "Bu dəyişiklik barədə istifadəçiyə e-poçt göndərin"
|
||||
includePassword = "E-poçta yeni parolu daxil edin"
|
||||
forcePasswordChange = "Növbəti girişdə istifadəçini parolu dəyişməyə məcbur et"
|
||||
emailUnavailable = "Bu istifadəçinin e-poçtu etibarlı e-poçt ünvanı deyil. Bildirişlər söndürülüb."
|
||||
smtpDisabled = "E-poçt bildirişləri üçün parametrlərdə SMTP aktiv olmalıdır."
|
||||
notifyOnly = "Parol olmadan e-poçt göndəriləcək; istifadəçiyə adminin onu dəyişdiyi bildiriləcək."
|
||||
submit = "Parolu yenilə"
|
||||
success = "Parol uğurla yeniləndi"
|
||||
error = "Parolu yeniləmək alınmadı"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "E-poçt Dəvəti"
|
||||
description = "Aşağıya vergüllə ayrılmış e-poçtları yazın və ya yapışdırın. İstifadəçilərə giriş məlumatları e-poçtla göndəriləcək."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "user1@example.com, user2@example.com"
|
||||
emailsRequired = "Ən azı bir e-poçt ünvanı tələb olunur"
|
||||
submit = "Dəvətnamələri göndər"
|
||||
success = "istifadəçi(lər) uğurla dəvət olundu"
|
||||
partialSuccess = "Bəzi dəvətnamələr alınmadı"
|
||||
partialFailure = "Bəzi dəvətlər uğursuz oldu"
|
||||
allFailed = "İstifadəçiləri dəvət etmək alınmadı"
|
||||
error = "Dəvətnamələri göndərmək alınmadı"
|
||||
|
||||
@@ -5288,8 +5443,8 @@ emailDisabled = "E-poçt dəvətləri üçün ayarlarda SMTP konfiqurasiyası v
|
||||
[workspace.people.license]
|
||||
users = "istifadəçi"
|
||||
availableSlots = "Mövcud yerlər"
|
||||
grandfathered = "Grandfathered"
|
||||
grandfatheredShort = "{{count}} grandfathered"
|
||||
grandfathered = "Əvvəlki şərtlərlə"
|
||||
grandfatheredShort = "{{count}} əvvəlki şərtlərlə"
|
||||
fromLicense = "lisenziyadan"
|
||||
slotsAvailable = "{{count}} istifadəçi yeri mövcuddur"
|
||||
noSlotsAvailable = "Mövcud yer yoxdur"
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "Stirling hesabınızla daxil olun"
|
||||
[setup.selfhosted]
|
||||
title = "Serverə daxil olun"
|
||||
subtitle = "Server məlumatlarınızı daxil edin"
|
||||
link = "və ya self-hosted hesaba qoşulun"
|
||||
|
||||
[setup.server]
|
||||
title = "Serverə qoşulun"
|
||||
@@ -5788,6 +5944,14 @@ description = "Öz Stirling PDF serverinizin tam URL ünvanını daxil edin"
|
||||
emptyUrl = "Zəhmət olmasa server URL-i daxil edin"
|
||||
unreachable = "Serverə qoşulmaq mümkün olmadı"
|
||||
testFailed = "Bağlantı testi uğursuz oldu"
|
||||
configFetch = "Server konfiqurasiyasını əldə etmək mümkün olmadı. URL-i yoxlayın və yenidən cəhd edin."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "Giriş aktiv deyil"
|
||||
body = "Bu serverdə giriş aktiv deyil. Bu serverə qoşulmaq üçün autentifikasiya aktiv edilməlidir:"
|
||||
step1 = "Mühitinizdə DOCKER_ENABLE_SECURITY=true təyin edin"
|
||||
step2 = "Yaxud settings.yml faylında security.enableLogin=true təyin edin"
|
||||
step3 = "Serveri yenidən başladın"
|
||||
|
||||
[setup.login]
|
||||
title = "Daxil ol"
|
||||
@@ -5797,6 +5961,13 @@ submit = "Daxil ol"
|
||||
signInWith = "Bununla daxil ol"
|
||||
oauthPending = "Təsdiqləmə üçün brauzer açılır..."
|
||||
orContinueWith = "Və ya e-poçt ilə davam edin"
|
||||
serverRequirement = "Qeyd: Serverdə giriş funksiyası aktiv olmalıdır."
|
||||
showInstructions = "Necə aktivləşdirmək olar?"
|
||||
hideInstructions = "Təlimatları gizlət"
|
||||
instructions = "Stirling PDF serverinizdə girişi aktivləşdirmək üçün:"
|
||||
instructionsEnvVar = "Mühit dəyişənini təyin edin:"
|
||||
instructionsOrYml = "Və ya settings.yml faylında:"
|
||||
instructionsRestart = "Dəyişikliklərin qüvvəyə minməsi üçün serveri yenidən başladın."
|
||||
|
||||
[setup.login.username]
|
||||
label = "İstifadəçi adı"
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "Erkən Giriş"
|
||||
reset = "Dəyişiklikləri sıfırla"
|
||||
downloadJson = "JSON-u endir"
|
||||
generatePdf = "PDF yarat"
|
||||
saveChanges = "Dəyişiklikləri yadda saxla"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "Mətni avtomatik miqyasla"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "Bu alfa görüntüləyici hələ inkişaf edir—bəzi şriftlər, rən
|
||||
[pdfTextEditor.empty]
|
||||
title = "Sənəd yüklənməyib"
|
||||
subtitle = "Mətn məzmununu redaktə etməyə başlamaq üçün PDF və ya JSON faylı yükləyin."
|
||||
dropzone = "Buraya PDF və ya JSON faylını sürükləyib buraxın və ya baxmaq üçün klikləyin"
|
||||
dropzoneWithFiles = "Fayllar vərəqindən bir fayl seçin və ya buraya PDF və ya JSON faylını sürükləyib buraxın, yaxud baxmaq üçün klikləyin"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "PDF Text Editor-ə xoş gəldiniz (Erkən Giriş)"
|
||||
|
||||
@@ -163,6 +163,11 @@ unfavorite = "Премахване от любими"
|
||||
fullscreen = "Превключване към режим на цял екран"
|
||||
sidebar = "Превключване към режим със странична лента"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "Бекендът не е намерен"
|
||||
retry = "Опитай отново"
|
||||
unreachable = "Приложението в момента не може да се свърже с бекенда. Проверете състоянието на бекенда и мрежовата свързаност, след което опитайте отново."
|
||||
|
||||
[zipWarning]
|
||||
title = "Голям ZIP файл"
|
||||
message = "Този ZIP съдържа {{count}} файла. Да се извлече въпреки това?"
|
||||
@@ -912,6 +917,9 @@ desc = "Създавайте многостъпкови работни проц
|
||||
desc = "Наслагва PDF файлове върху друг PDF"
|
||||
title = "Наслагване PDF-и"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "Редактор на текст в PDF"
|
||||
desc = "Редактирайте съществуващ текст и изображения в PDF файлове"
|
||||
|
||||
[home.addText]
|
||||
tags = "текст,анотация,етикет"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "Нарисуван подпис"
|
||||
defaultImageLabel = "Качен подпис"
|
||||
defaultTextLabel = "Въведен подпис"
|
||||
saveButton = "Запази подписа"
|
||||
savePersonal = "Запази като личен"
|
||||
saveShared = "Запази като споделен"
|
||||
saveUnavailable = "Първо създайте подпис, за да го запазите."
|
||||
noChanges = "Текущият подпис вече е запазен."
|
||||
tempStorageTitle = "Временно съхранение в браузъра"
|
||||
tempStorageDescription = "Подписите се съхраняват само във вашия браузър. Ще бъдат загубени, ако изчистите данните на браузъра или смените браузър."
|
||||
personalHeading = "Лични подписи"
|
||||
sharedHeading = "Споделени подписи"
|
||||
personalDescription = "Само вие можете да виждате тези подписи."
|
||||
sharedDescription = "Всички потребители могат да виждат и използват тези подписи."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "Рисунка"
|
||||
@@ -3020,6 +3036,91 @@ title = "Вземете информация за PDF"
|
||||
header = "Вземете информация за PDF"
|
||||
submit = "Вземете информация"
|
||||
downloadJson = "Изтеглете JSON"
|
||||
processing = "Извличане на информация..."
|
||||
results = "Резултати"
|
||||
noResults = "Стартирайте инструмента, за да генерирате отчет."
|
||||
downloads = "Изтегляния"
|
||||
noneDetected = "Нищо не е открито"
|
||||
indexTitle = "Индекс"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "Пълно резюме на информацията"
|
||||
shortTitle = "Информация за PDF"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "Метаданни"
|
||||
formFields = "Полета на формуляра"
|
||||
basicInfo = "Основна информация"
|
||||
documentInfo = "Информация за документа"
|
||||
compliance = "Съответствие"
|
||||
encryption = "Шифриране"
|
||||
permissions = "Разрешения"
|
||||
other = "Друго"
|
||||
perPageInfo = "Информация по страници"
|
||||
tableOfContents = "Съдържание"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "Прикачени файлове"
|
||||
embeddedFiles = "Вградени файлове"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Слоеве"
|
||||
structureTree = "StructureTree"
|
||||
xmp = "XMPMetadata"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "Размер"
|
||||
annotations = "Анотации"
|
||||
images = "Изображения"
|
||||
links = "Връзки"
|
||||
fonts = "Шрифтове"
|
||||
xobjects = "Брой XObject"
|
||||
multimedia = "Мултимедия"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "Страници"
|
||||
fileSize = "Размер на файла"
|
||||
pdfVersion = "Версия на PDF"
|
||||
language = "Език"
|
||||
title = "Обобщение на PDF"
|
||||
author = "Автор"
|
||||
created = "Създаден"
|
||||
modified = "Променен"
|
||||
permsAll = "Всички разрешения са позволени"
|
||||
permsRestricted = "{{count}} ограничения"
|
||||
permsMixed = "Някои разрешения са ограничени"
|
||||
hasCompliance = "Има стандарти за съответствие"
|
||||
noCompliance = "Няма стандарти за съответствие"
|
||||
basic = "Основна информация"
|
||||
documentInfo = "Информация за документа"
|
||||
securityTitle = "Състояние на сигурността"
|
||||
technical = "Технически"
|
||||
overviewTitle = "Преглед на PDF"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "Шифриран PDF - налична защита с парола"
|
||||
unencrypted = "Нешифриран PDF - няма защита с парола"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "Изображения"
|
||||
fonts = "Шрифтове"
|
||||
formFields = "Полета на формуляра"
|
||||
embeddedFiles = "Вградени файлове"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Слоеве"
|
||||
bookmarks = "Отметки"
|
||||
multimedia = "Мултимедия"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "неозаглавен документ"
|
||||
unknown = "Неизвестен автор"
|
||||
text = "Това е {{pages}}-страничен PDF със заглавие {{title}}, създаден от {{author}} (версия на PDF {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "Някои файлове не можаха да бъдат обработени."
|
||||
unexpected = "Неочаквана грешка по време на извличане."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "Извличането е завършено"
|
||||
|
||||
[extractPage]
|
||||
tags = "извличане"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "Моля впишете се"
|
||||
ssoSignIn = "Влизане чрез еднократно влизане"
|
||||
oAuth2AutoCreateDisabled = "OAUTH2 Автоматично създаване на потребител е деактивирано"
|
||||
oAuth2AdminBlockedUser = "Регистрацията или влизането на нерегистрирани потребители в момента е блокирано. Моля, свържете се с администратора."
|
||||
oAuth2RequiresLicense = "Вход с OAuth/SSO изисква платен лиценз (Server или Enterprise). Моля, свържете се с администратора, за да надстроите плана си."
|
||||
saml2RequiresLicense = "Вход със SAML изисква платен лиценз (Server или Enterprise). Моля, свържете се с администратора, за да надстроите плана си."
|
||||
maxUsersReached = "Достигнат е максималният брой потребители за текущия ви лиценз. Моля, свържете се с администратора, за да надстроите плана си или да добавите още места."
|
||||
oauth2RequestNotFound = "Заявката за оторизация не е намерена"
|
||||
oauth2InvalidUserInfoResponse = "Невалидна информация за потребителя"
|
||||
oauth2invalidRequest = "Невалидна заявка"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "Побиране по ширина"
|
||||
actualSize = "Действителен размер"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "Не може да се визуализира файлът"
|
||||
dualPageView = "Изглед: две страници"
|
||||
firstPage = "Първа страница"
|
||||
lastPage = "Последна страница"
|
||||
previousPage = "Предишна страница"
|
||||
nextPage = "Следваща страница"
|
||||
onlyPdfSupported = "Прегледачът поддържа само PDF файлове. Този файл изглежда е в друг формат."
|
||||
previousPage = "Предишна страница"
|
||||
singlePageView = "Изглед: една страница"
|
||||
unknownFile = "Непознат файл"
|
||||
zoomIn = "Увеличи"
|
||||
zoomOut = "Намали"
|
||||
singlePageView = "Изглед: една страница"
|
||||
dualPageView = "Изглед: две страници"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "Затвори избраните файлове"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "Показване/скриване на страничната
|
||||
exportSelected = "Експорт на избраните страници"
|
||||
toggleAnnotations = "Показване/скриване на анотациите"
|
||||
annotationMode = "Превключи режим на анотации"
|
||||
print = "Печат на PDF"
|
||||
draw = "Рисуване"
|
||||
save = "Запази"
|
||||
saveChanges = "Запази промените"
|
||||
@@ -4494,6 +4602,7 @@ description = "URL или име на файл към импресум (задъ
|
||||
title = "Премиум и Enterprise"
|
||||
description = "Конфигурирайте вашия премиум или enterprise лицензионен ключ."
|
||||
license = "Конфигурация на лиценз"
|
||||
noInput = "Моля, предоставете лицензен ключ или файл"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "Имате лицензен ключ или сертификат?"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "Презаписването на текущия лицензен кл
|
||||
line2 = "Предишният лиценз ще бъде окончателно загубен, освен ако не сте го архивирали другаде."
|
||||
line3 = "Важно: Пазете лицензните ключове поверителни и сигурни. Никога не ги споделяйте публично."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "Лицензен ключ"
|
||||
file = "Файл със сертификат"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "Файл с лицензен сертификат"
|
||||
description = "Качете вашия .lic или .cert лицензен файл от офлайн покупки"
|
||||
choose = "Изберете лицензен файл"
|
||||
selected = "Избрано: {{filename}} ({{size}})"
|
||||
successMessage = "Лицензният файл беше качен и активиран успешно. Не е необходимо рестартиране."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "Активен лиценз"
|
||||
file = "Източник: Лицензен файл ({{path}})"
|
||||
key = "Източник: Лицензен ключ"
|
||||
type = "Тип: {{type}}"
|
||||
noInput = "Моля, предоставете лицензен ключ или качете файл със сертификат"
|
||||
success = "Успешно"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "Активирай премиум функции"
|
||||
description = "Активира проверки на лицензионния ключ за pro/enterprise функции"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} избрани"
|
||||
download = "Изтегли"
|
||||
delete = "Изтрий"
|
||||
unsupported = "Неподдържано"
|
||||
active = "Активен"
|
||||
addToUpload = "Добави към качването"
|
||||
closeFile = "Затвори файла"
|
||||
deleteAll = "Изтрий всички"
|
||||
loadingFiles = "Зареждане на файлове..."
|
||||
noFiles = "Няма налични файлове"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "Надградете сега →"
|
||||
freeTitle = "Лиценз за сървър"
|
||||
overLimitTitle = "Необходим е лиценз за сървър"
|
||||
overLimitBody = "Нашият лиценз позволява до <strong>{{freeTierLimit}}</strong> безплатни потребители на сървър. Имате <strong>{{overLimitUserCopy}}</strong> потребители на Stirling. За да продължите без прекъсвания, надградете до плана Stirling Server – <strong>неограничени места</strong>, редакция на PDF текст и пълен админ контрол за $99/сървър/месец."
|
||||
freeBody = "Нашият <strong>Open-Core</strong> лиценз позволява до <strong>{{freeTierLimit}}</strong> безплатни потребители на сървър. За да мащабирате без прекъсвания и да получите ранен достъп до нашия нов <strong>инструмент за редакция на PDF текст</strong>, препоръчваме плана Stirling Server – пълно редактиране и <strong>неограничени места</strong> за $99/сървър/месец."
|
||||
freeBody = "Нашият лицензен модел <strong>Open-Core</strong> позволява до <strong>{{freeTierLimit}}</strong> потребители безплатно на сървър. За безпрепятствено мащабиране препоръчваме плана Stirling Server - <strong>неограничени места</strong> и <strong>поддръжка на SSO</strong> за $99/server/mo."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "Изтегляне"
|
||||
@@ -5237,6 +5367,31 @@ error = "Неуспешно обновяване на статус на потр
|
||||
success = "Потребителят е изтрит успешно"
|
||||
error = "Неуспешно изтриване на потребител"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "Промяна на парола"
|
||||
title = "Промяна на парола"
|
||||
subtitle = "Актуализирайте паролата за"
|
||||
newPassword = "Нова парола"
|
||||
confirmPassword = "Потвърдете паролата"
|
||||
placeholder = "Въведете нова парола"
|
||||
confirmPlaceholder = "Въведете отново новата парола"
|
||||
passwordRequired = "Моля, въведете нова парола"
|
||||
passwordMismatch = "Паролите не съвпадат"
|
||||
generateRandom = "Генерирайте сигурна парола"
|
||||
generatedPreview = "Генерирана парола:"
|
||||
copyTooltip = "Копиране в клипборда"
|
||||
copiedToClipboard = "Паролата е копирана в клипборда"
|
||||
copyFailed = "Неуспешно копиране на паролата"
|
||||
sendEmail = "Изпратете имейл на потребителя за тази промяна"
|
||||
includePassword = "Включете новата парола в имейла"
|
||||
forcePasswordChange = "Принудете потребителя да смени паролата при следващо влизане"
|
||||
emailUnavailable = "Имейлът на този потребител не е валиден адрес. Известията са изключени."
|
||||
smtpDisabled = "Имейл известията изискват SMTP да е активиран в настройките."
|
||||
notifyOnly = "Ще бъде изпратен имейл без паролата, за да уведоми потребителя, че администратор я е променил."
|
||||
submit = "Актуализиране на паролата"
|
||||
success = "Паролата е актуализирана успешно"
|
||||
error = "Неуспешно актуализиране на паролата"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "Покана по имейл"
|
||||
description = "Въведете или поставете имейли по-долу, разделени със запетаи. Потребителите ще получат данни за вход по имейл."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "user1@example.com, user2@example.com"
|
||||
emailsRequired = "Изисква се поне един имейл адрес"
|
||||
submit = "Изпрати покани"
|
||||
success = "Потребител(и) поканени успешно"
|
||||
partialSuccess = "Някои покани не успяха"
|
||||
partialFailure = "Някои покани бяха неуспешни"
|
||||
allFailed = "Неуспешно канене на потребители"
|
||||
error = "Неуспешно изпращане на покани"
|
||||
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "Впишете се с вашия Stirling акаунт"
|
||||
[setup.selfhosted]
|
||||
title = "Впишете се в сървъра"
|
||||
subtitle = "Въведете своите данни за сървъра"
|
||||
link = "или се свържете със самостоятелно хостван акаунт"
|
||||
|
||||
[setup.server]
|
||||
title = "Свързване към сървър"
|
||||
@@ -5788,6 +5944,14 @@ description = "Въведете пълния URL на вашия самосто
|
||||
emptyUrl = "Моля, въведете URL на сървър"
|
||||
unreachable = "Неуспешна връзка със сървъра"
|
||||
testFailed = "Тестът на връзката е неуспешен"
|
||||
configFetch = "Неуспешно извличане на конфигурацията на сървъра. Моля, проверете URL адреса и опитайте отново."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "Входът не е активиран"
|
||||
body = "На този сървър не е активиран вход. За да се свържете, трябва да активирате удостоверяване:"
|
||||
step1 = "Задайте DOCKER_ENABLE_SECURITY=true във вашата среда"
|
||||
step2 = "Или задайте security.enableLogin=true в settings.yml"
|
||||
step3 = "Рестартирайте сървъра"
|
||||
|
||||
[setup.login]
|
||||
title = "Вписване"
|
||||
@@ -5797,6 +5961,13 @@ submit = "Вход"
|
||||
signInWith = "Вписване с"
|
||||
oauthPending = "Отваряне на браузър за удостоверяване..."
|
||||
orContinueWith = "Или продължете с имейл"
|
||||
serverRequirement = "Забележка: Сървърът трябва да има активиран вход."
|
||||
showInstructions = "Как да се активира?"
|
||||
hideInstructions = "Скрий инструкциите"
|
||||
instructions = "За да активирате вход на вашия Stirling PDF сървър:"
|
||||
instructionsEnvVar = "Задайте променливата на средата:"
|
||||
instructionsOrYml = "Или в settings.yml:"
|
||||
instructionsRestart = "След това рестартирайте сървъра, за да влязат промените в сила."
|
||||
|
||||
[setup.login.username]
|
||||
label = "Потребителско име"
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "Ранен достъп"
|
||||
reset = "Отмени промените"
|
||||
downloadJson = "Изтегли JSON"
|
||||
generatePdf = "Генерирай PDF"
|
||||
saveChanges = "Запази промените"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "Авто-мащабиране на текст за напасване в полетата"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "Този алфа визуализатор все още се разв
|
||||
[pdfTextEditor.empty]
|
||||
title = "Няма зареден документ"
|
||||
subtitle = "Заредете PDF или JSON файл, за да започнете да редактирате текстовото съдържание."
|
||||
dropzone = "Плъзнете и пуснете тук PDF или JSON файл или щракнете, за да прегледате"
|
||||
dropzoneWithFiles = "Изберете файл от раздела Файлове или плъзнете и пуснете тук PDF или JSON файл, или щракнете, за да прегледате"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "Добре дошли в PDF Text Editor (ранен достъп)"
|
||||
|
||||
@@ -163,6 +163,11 @@ unfavorite = "Elimina dels preferits"
|
||||
fullscreen = "Canvia al mode de pantalla completa"
|
||||
sidebar = "Canvia al mode de barra lateral"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "Backend no trobat"
|
||||
retry = "Torneu-ho a intentar"
|
||||
unreachable = "L'aplicació no pot connectar-se al backend ara mateix. Verifiqueu l'estat del backend i la connectivitat de xarxa i torneu-ho a intentar."
|
||||
|
||||
[zipWarning]
|
||||
title = "Fitxer ZIP gran"
|
||||
message = "Aquest ZIP conté {{count}} fitxers. Vols extreure'l igualment?"
|
||||
@@ -347,7 +352,7 @@ teams = "Equips"
|
||||
title = "Configuració"
|
||||
systemSettings = "Configuració del sistema"
|
||||
features = "Funcions"
|
||||
endpoints = "Endpoints"
|
||||
endpoints = "Punts finals"
|
||||
database = "Base de dades"
|
||||
advanced = "Avançat"
|
||||
|
||||
@@ -556,7 +561,7 @@ totalEndpoints = "Total d'endpoints"
|
||||
totalVisits = "Total de visites"
|
||||
showing = "Mostrant"
|
||||
selectedVisits = "Visites seleccionades"
|
||||
endpoint = "Endpoint"
|
||||
endpoint = "Punt final"
|
||||
visits = "Visites"
|
||||
percentage = "Percentatge"
|
||||
loading = "Carregant..."
|
||||
@@ -912,6 +917,9 @@ desc = "Construeix fluxos de treball multietapa enllaçant accions PDF. Ideal pe
|
||||
desc = "Superposa PDFs sobre un altre PDF"
|
||||
title = "Superposar PDFs"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "Editor de text PDF"
|
||||
desc = "Edita el text i les imatges existents dins dels PDF"
|
||||
|
||||
[home.addText]
|
||||
tags = "text,anotació,etiqueta"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "Signatura dibuixada"
|
||||
defaultImageLabel = "Signatura pujada"
|
||||
defaultTextLabel = "Signatura teclejada"
|
||||
saveButton = "Desa la signatura"
|
||||
savePersonal = "Desa com a personal"
|
||||
saveShared = "Desa com a compartida"
|
||||
saveUnavailable = "Crea una signatura primer per poder-la desar."
|
||||
noChanges = "La signatura actual ja està desada."
|
||||
tempStorageTitle = "Emmagatzematge temporal del navegador"
|
||||
tempStorageDescription = "Les signatures només s'emmagatzemen al vostre navegador. Es perdran si netegeu les dades del navegador o canvieu de navegador."
|
||||
personalHeading = "Signatures personals"
|
||||
sharedHeading = "Signatures compartides"
|
||||
personalDescription = "Només vosaltres podeu veure aquestes signatures."
|
||||
sharedDescription = "Tots els usuaris poden veure i utilitzar aquestes signatures."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "Dibuix"
|
||||
@@ -3020,6 +3036,91 @@ title = "Obteniu Informació del PDF"
|
||||
header = "Obteniu Informació del PDF"
|
||||
submit = "Obteniu Informació"
|
||||
downloadJson = "Descarrega JSON"
|
||||
processing = "Extraient informació..."
|
||||
results = "Resultats"
|
||||
noResults = "Executeu l'eina per generar un informe."
|
||||
downloads = "Descàrregues"
|
||||
noneDetected = "No se n'ha detectat cap"
|
||||
indexTitle = "Índex"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "Resum d'informació complet"
|
||||
shortTitle = "Informació del PDF"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "Metadades"
|
||||
formFields = "Camps de formulari"
|
||||
basicInfo = "Informació bàsica"
|
||||
documentInfo = "Informació del document"
|
||||
compliance = "Conformitat"
|
||||
encryption = "Xifratge"
|
||||
permissions = "Permisos"
|
||||
other = "Altres"
|
||||
perPageInfo = "Informació per pàgina"
|
||||
tableOfContents = "Taula de continguts"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "Fitxers adjunts"
|
||||
embeddedFiles = "Fitxers incrustats"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Capes"
|
||||
structureTree = "StructureTree"
|
||||
xmp = "XMPMetadata"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "Mida"
|
||||
annotations = "Anotacions"
|
||||
images = "Imatges"
|
||||
links = "Enllaços"
|
||||
fonts = "Tipus de lletra"
|
||||
xobjects = "Recompte d'XObject"
|
||||
multimedia = "Multimèdia"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "Pàgines"
|
||||
fileSize = "Mida del fitxer"
|
||||
pdfVersion = "Versió del PDF"
|
||||
language = "Idioma"
|
||||
title = "Resum del PDF"
|
||||
author = "Autor"
|
||||
created = "Creat"
|
||||
modified = "Modificat"
|
||||
permsAll = "Tots els permisos permesos"
|
||||
permsRestricted = "{{count}} restriccions"
|
||||
permsMixed = "Alguns permisos restringits"
|
||||
hasCompliance = "Té estàndards de conformitat"
|
||||
noCompliance = "Sense estàndards de conformitat"
|
||||
basic = "Informació bàsica"
|
||||
documentInfo = "Informació del document"
|
||||
securityTitle = "Estat de seguretat"
|
||||
technical = "Tècnic"
|
||||
overviewTitle = "Visió general del PDF"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "PDF xifrat - Protecció amb contrasenya present"
|
||||
unencrypted = "PDF no xifrat - Sense protecció amb contrasenya"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "Imatges"
|
||||
fonts = "Tipus de lletra"
|
||||
formFields = "Camps de formulari"
|
||||
embeddedFiles = "Fitxers incrustats"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Capes"
|
||||
bookmarks = "Marcadors"
|
||||
multimedia = "Multimèdia"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "un document sense títol"
|
||||
unknown = "Autor desconegut"
|
||||
text = "Aquest és un PDF de {{pages}} pàgines titulat {{title}} creat per {{author}} (versió del PDF {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "Alguns fitxers no s'han pogut processar."
|
||||
unexpected = "Error inesperat durant l'extracció."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "Extracció completada"
|
||||
|
||||
[extractPage]
|
||||
tags = "extreure"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "Autenticat"
|
||||
ssoSignIn = "Inicia sessió mitjançant inici de sessió únic"
|
||||
oAuth2AutoCreateDisabled = "La creació automàtica d'usuaris OAUTH2 està desactivada"
|
||||
oAuth2AdminBlockedUser = "El registre o inici de sessió d'usuaris no registrats està actualment bloquejat. Si us plau, contacta amb l'administrador."
|
||||
oAuth2RequiresLicense = "L'inici de sessió OAuth/SSO requereix una llicència de pagament (Server o Enterprise). Poseu-vos en contacte amb l'administrador per actualitzar el vostre pla."
|
||||
saml2RequiresLicense = "L'inici de sessió SAML requereix una llicència de pagament (Server o Enterprise). Poseu-vos en contacte amb l'administrador per actualitzar el vostre pla."
|
||||
maxUsersReached = "S'ha assolit el nombre màxim d'usuaris de la vostra llicència actual. Poseu-vos en contacte amb l'administrador per actualitzar el vostre pla o afegir més places."
|
||||
oauth2RequestNotFound = "Sol·licitud d'autorització no trobada"
|
||||
oauth2InvalidUserInfoResponse = "Resposta d'informació d'usuari no vàlida"
|
||||
oauth2invalidRequest = "Sol·licitud no vàlida"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "Ajusta a l'amplada"
|
||||
actualSize = "Mida real"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "No es pot previsualitzar el fitxer"
|
||||
dualPageView = "Vista de dues pàgines"
|
||||
firstPage = "Primera pàgina"
|
||||
lastPage = "Última pàgina"
|
||||
previousPage = "Pàgina anterior"
|
||||
nextPage = "Pàgina següent"
|
||||
onlyPdfSupported = "El visualitzador només admet fitxers PDF. Aquest fitxer sembla ser d'un format diferent."
|
||||
previousPage = "Pàgina anterior"
|
||||
singlePageView = "Vista d'una sola pàgina"
|
||||
unknownFile = "Fitxer desconegut"
|
||||
zoomIn = "Amplia"
|
||||
zoomOut = "Redueix"
|
||||
singlePageView = "Vista d'una sola pàgina"
|
||||
dualPageView = "Vista de dues pàgines"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "Tanca els fitxers seleccionats"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "Mostra/oculta la barra lateral"
|
||||
exportSelected = "Exporta les pàgines seleccionades"
|
||||
toggleAnnotations = "Mostra/oculta les anotacions"
|
||||
annotationMode = "Activa/desactiva el mode d'anotació"
|
||||
print = "Imprimeix el PDF"
|
||||
draw = "Dibuixa"
|
||||
save = "Desa"
|
||||
saveChanges = "Desa els canvis"
|
||||
@@ -3925,7 +4033,7 @@ files = "Fitxers"
|
||||
activity = "Registre"
|
||||
help = "Ajuda"
|
||||
account = "Compte"
|
||||
config = "Config"
|
||||
config = "Configuració"
|
||||
settings = "Ajustos"
|
||||
adminSettings = "Ajustos admin"
|
||||
allTools = "All Tools"
|
||||
@@ -4343,7 +4451,7 @@ features = "Banderes de funcions"
|
||||
processing = "Processament"
|
||||
|
||||
[admin.settings.advanced.endpoints]
|
||||
label = "Endpoints"
|
||||
label = "Punts finals"
|
||||
manage = "Gestiona els endpoints de l'API"
|
||||
description = "La gestió d'endpoints es configura via YAML. Consulteu la documentació per a detalls sobre com habilitar/deshabilitar endpoints específics."
|
||||
|
||||
@@ -4494,6 +4602,7 @@ description = "URL o nom de fitxer de l'impressum (requerit en algunes jurisdicc
|
||||
title = "Premium i Enterprise"
|
||||
description = "Configureu la clau de llicència Premium o Enterprise."
|
||||
license = "Configuració de llicència"
|
||||
noInput = "Proporcioneu una clau de llicència o un fitxer"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "Tens una clau de llicència o un fitxer de certificat?"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "Sobreescriure la clau de llicència actual no es pot desfer."
|
||||
line2 = "La llicència anterior es perdrà permanentment si no en tens una còpia de seguretat."
|
||||
line3 = "Important: mantén les claus de llicència privades i segures. No les comparteixis mai públicament."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "Clau de llicència"
|
||||
file = "Fitxer de certificat"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "Fitxer de certificat de llicència"
|
||||
description = "Pugeu el vostre fitxer de llicència .lic o .cert de compres fora de línia"
|
||||
choose = "Trieu el fitxer de llicència"
|
||||
selected = "Seleccionat: {{filename}} ({{size}})"
|
||||
successMessage = "Fitxer de llicència pujat i activat correctament. No cal reiniciar."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "Llicència activa"
|
||||
file = "Origen: Fitxer de llicència ({{path}})"
|
||||
key = "Origen: Clau de llicència"
|
||||
type = "Tipus: {{type}}"
|
||||
noInput = "Proporcioneu una clau de llicència o pugeu un fitxer de certificat"
|
||||
success = "Èxit"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "Habilita les funcions Premium"
|
||||
description = "Habilita les comprovacions de clau per a funcions pro/enterprise"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} seleccionats"
|
||||
download = "Descarrega"
|
||||
delete = "Esborra"
|
||||
unsupported = "No compatible"
|
||||
active = "Actiu"
|
||||
addToUpload = "Afegeix a la pujada"
|
||||
closeFile = "Tanca el fitxer"
|
||||
deleteAll = "Suprimeix-ho tot"
|
||||
loadingFiles = "Carregant fitxers..."
|
||||
noFiles = "No hi ha fitxers disponibles"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "Actualitza ara →"
|
||||
freeTitle = "Llicència del servidor"
|
||||
overLimitTitle = "Cal una llicència de servidor"
|
||||
overLimitBody = "La nostra llicència permet fins a <strong>{{freeTierLimit}}</strong> usuaris gratuïts per servidor. Tens <strong>{{overLimitUserCopy}}</strong> usuaris de Stirling. Per continuar sense interrupcions, actualitza al pla Stirling Server: <strong>seients il·limitats</strong>, edició de text de PDF i control d'administració complet per 99 $/servidor/mes."
|
||||
freeBody = "La nostra llicència <strong>Open-Core</strong> permet fins a <strong>{{freeTierLimit}}</strong> usuaris gratuïts per servidor. Per escalar sense interrupcions i obtenir accés anticipat a la nova <strong>eina d'edició de text PDF</strong>, recomanem el pla Stirling Server: edició completa i <strong>seients il·limitats</strong> per 99 $/servidor/mes."
|
||||
freeBody = "La nostra llicència <strong>Open-Core</strong> permet fins a <strong>{{freeTierLimit}}</strong> usuaris gratuïts per servidor. Per escalar sense interrupcions, recomanem el pla Stirling Server - <strong>places il·limitades</strong> i <strong>suport SSO</strong> per $99/servidor/mes."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "Baixa"
|
||||
@@ -5237,6 +5367,31 @@ error = "No s’ha pogut actualitzar l’estat de l’usuari"
|
||||
success = "Usuari suprimit correctament"
|
||||
error = "No s’ha pogut suprimir l’usuari"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "Canvieu la contrasenya"
|
||||
title = "Canvi de contrasenya"
|
||||
subtitle = "Actualitza la contrasenya de"
|
||||
newPassword = "Contrasenya nova"
|
||||
confirmPassword = "Confirma la contrasenya"
|
||||
placeholder = "Introduïu una contrasenya nova"
|
||||
confirmPlaceholder = "Torneu a introduir la contrasenya nova"
|
||||
passwordRequired = "Introduïu una contrasenya nova"
|
||||
passwordMismatch = "Les contrasenyes no coincideixen"
|
||||
generateRandom = "Genereu una contrasenya segura"
|
||||
generatedPreview = "Contrasenya generada:"
|
||||
copyTooltip = "Copieu al portapapers"
|
||||
copiedToClipboard = "Contrasenya copiada al portapapers"
|
||||
copyFailed = "No s'ha pogut copiar la contrasenya"
|
||||
sendEmail = "Envieu un correu a l'usuari sobre aquest canvi"
|
||||
includePassword = "Incloeu la contrasenya nova al correu"
|
||||
forcePasswordChange = "Obligueu l'usuari a canviar la contrasenya en el pròxim inici de sessió"
|
||||
emailUnavailable = "El correu d'aquest usuari no és una adreça de correu vàlida. Les notificacions estan desactivades."
|
||||
smtpDisabled = "Les notificacions per correu electrònic requereixen habilitar SMTP als paràmetres."
|
||||
notifyOnly = "S'enviarà un correu sense la contrasenya, informant l'usuari que un administrador l'ha canviada."
|
||||
submit = "Actualitzeu la contrasenya"
|
||||
success = "La contrasenya s'ha actualitzat correctament"
|
||||
error = "No s'ha pogut actualitzar la contrasenya"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "Invitació per correu"
|
||||
description = "Escriviu o enganxeu correus a continuació, separats per comes. Els usuaris rebran credencials d’inici de sessió per correu electrònic."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "user1@example.com, user2@example.com"
|
||||
emailsRequired = "Cal almenys una adreça de correu"
|
||||
submit = "Envia invitacions"
|
||||
success = "usuari(s) convidat(s) correctament"
|
||||
partialSuccess = "Algunes invitacions han fallat"
|
||||
partialFailure = "Algunes invitacions han fallat"
|
||||
allFailed = "No s’ha pogut convidar els usuaris"
|
||||
error = "No s’han pogut enviar les invitacions"
|
||||
|
||||
@@ -5709,7 +5864,7 @@ title = "Gràfic d'ús dels endpoints"
|
||||
|
||||
[usage.table]
|
||||
title = "Estadístiques detallades"
|
||||
endpoint = "Endpoint"
|
||||
endpoint = "Punt final"
|
||||
visits = "Visites"
|
||||
percentage = "Percentatge"
|
||||
noData = "No hi ha dades disponibles"
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "Inicia sessió amb el teu compte de Stirling"
|
||||
[setup.selfhosted]
|
||||
title = "Inicia sessió al servidor"
|
||||
subtitle = "Introdueix les credencials del servidor"
|
||||
link = "o connecteu-vos a un compte autoallotjat"
|
||||
|
||||
[setup.server]
|
||||
title = "Connecta't al servidor"
|
||||
@@ -5788,6 +5944,14 @@ description = "Introdueix la URL completa del teu servidor autoallotjat de Stirl
|
||||
emptyUrl = "Introdueix una URL de servidor"
|
||||
unreachable = "No s'ha pogut connectar amb el servidor"
|
||||
testFailed = "Ha fallat la prova de connexió"
|
||||
configFetch = "No s'ha pogut obtenir la configuració del servidor. Comproveu l'URL i torneu-ho a provar."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "Inici de sessió no habilitat"
|
||||
body = "Aquest servidor no té l'inici de sessió habilitat. Per connectar-hi, heu d'habilitar l'autenticació:"
|
||||
step1 = "Establiu DOCKER_ENABLE_SECURITY=true al vostre entorn"
|
||||
step2 = "O establiu security.enableLogin=true a settings.yml"
|
||||
step3 = "Reinicieu el servidor"
|
||||
|
||||
[setup.login]
|
||||
title = "Inicia sessió"
|
||||
@@ -5797,6 +5961,13 @@ submit = "Inicia sessió"
|
||||
signInWith = "Inicia sessió amb"
|
||||
oauthPending = "Obrint el navegador per autenticar-te..."
|
||||
orContinueWith = "O continua amb el correu electrònic"
|
||||
serverRequirement = "Nota: el servidor ha de tenir l'inici de sessió habilitat."
|
||||
showInstructions = "Com s'habilita?"
|
||||
hideInstructions = "Amagueu les instruccions"
|
||||
instructions = "Per habilitar l'inici de sessió al vostre servidor de Stirling PDF:"
|
||||
instructionsEnvVar = "Establiu la variable d'entorn:"
|
||||
instructionsOrYml = "O a settings.yml:"
|
||||
instructionsRestart = "A continuació, reinicieu el servidor perquè els canvis tinguin efecte."
|
||||
|
||||
[setup.login.username]
|
||||
label = "Nom d'usuari"
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "Accés anticipat"
|
||||
reset = "Restableix els canvis"
|
||||
downloadJson = "Descarrega JSON"
|
||||
generatePdf = "Genera PDF"
|
||||
saveChanges = "Deseu els canvis"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "Autoajusta el text a les caixes"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "Aquest visor alfa encara evoluciona—certs tipus de lletra, colors, ef
|
||||
[pdfTextEditor.empty]
|
||||
title = "No s'ha carregat cap document"
|
||||
subtitle = "Carrega un fitxer PDF o JSON per començar a editar el contingut de text."
|
||||
dropzone = "Arrossegueu i deixeu anar un fitxer PDF o JSON aquí, o feu clic per explorar"
|
||||
dropzoneWithFiles = "Seleccioneu un fitxer de la pestanya Fitxers o arrossegueu i deixeu anar aquí un fitxer PDF o JSON, o feu clic per explorar"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "Benvingut a l'Editor de text PDF (accés anticipat)"
|
||||
|
||||
@@ -163,6 +163,11 @@ unfavorite = "Odebrat z oblíbených"
|
||||
fullscreen = "Přepnout na režim na celou obrazovku"
|
||||
sidebar = "Přepnout na režim postranního panelu"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "Backend nebyl nalezen"
|
||||
retry = "Zkusit znovu"
|
||||
unreachable = "Aplikace se nyní nemůže připojit k backendu. Ověřte stav backendu a síťové připojení a poté to zkuste znovu."
|
||||
|
||||
[zipWarning]
|
||||
title = "Velký soubor ZIP"
|
||||
message = "Tento ZIP obsahuje {{count}} souborů. Přesto rozbalit?"
|
||||
@@ -347,7 +352,7 @@ teams = "Týmy"
|
||||
title = "Konfigurace"
|
||||
systemSettings = "Systémová nastavení"
|
||||
features = "Funkce"
|
||||
endpoints = "Endpoints"
|
||||
endpoints = "Koncové body"
|
||||
database = "Databáze"
|
||||
advanced = "Pokročilé"
|
||||
|
||||
@@ -912,6 +917,9 @@ desc = "Vytvářejte vícekrokové workflow řetězením akcí PDF. Ideální pr
|
||||
desc = "Překryje PDF nad jiným PDF"
|
||||
title = "Překrýt PDF"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "Editor textu PDF"
|
||||
desc = "Upravujte existující text a obrázky v PDF"
|
||||
|
||||
[home.addText]
|
||||
tags = "text,anotace,štítek"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "Nakreslený podpis"
|
||||
defaultImageLabel = "Nahraný podpis"
|
||||
defaultTextLabel = "Napsaný podpis"
|
||||
saveButton = "Uložit podpis"
|
||||
savePersonal = "Uložit osobní"
|
||||
saveShared = "Uložit sdílené"
|
||||
saveUnavailable = "Nejprve vytvořte podpis, abyste jej mohli uložit."
|
||||
noChanges = "Aktuální podpis je již uložen."
|
||||
tempStorageTitle = "Dočasné úložiště prohlížeče"
|
||||
tempStorageDescription = "Podpisy jsou uloženy pouze ve vašem prohlížeči. Při vymazání dat prohlížeče nebo při přepnutí na jiný prohlížeč budou ztraceny."
|
||||
personalHeading = "Osobní podpisy"
|
||||
sharedHeading = "Sdílené podpisy"
|
||||
personalDescription = "Tyto podpisy vidíte pouze vy."
|
||||
sharedDescription = "Všichni uživatelé mohou tyto podpisy vidět a používat."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "Kresba"
|
||||
@@ -3020,6 +3036,91 @@ title = "Získat informace o PDF"
|
||||
header = "Získat informace o PDF"
|
||||
submit = "Získat informace"
|
||||
downloadJson = "Stáhnout JSON"
|
||||
processing = "Probíhá extrahování informací..."
|
||||
results = "Výsledky"
|
||||
noResults = "Spusťte nástroj pro vygenerování zprávy."
|
||||
downloads = "Stažení"
|
||||
noneDetected = "Nic nebylo zjištěno"
|
||||
indexTitle = "Rejstřík"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "Úplné shrnutí informací"
|
||||
shortTitle = "Informace o PDF"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "Metadata"
|
||||
formFields = "Formulářová pole"
|
||||
basicInfo = "Základní informace"
|
||||
documentInfo = "Informace o dokumentu"
|
||||
compliance = "Shoda"
|
||||
encryption = "Šifrování"
|
||||
permissions = "Oprávnění"
|
||||
other = "Ostatní"
|
||||
perPageInfo = "Informace po stránkách"
|
||||
tableOfContents = "Obsah"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "Přílohy"
|
||||
embeddedFiles = "Vložené soubory"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Vrstvy"
|
||||
structureTree = "StructureTree"
|
||||
xmp = "XMPMetadata"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "Velikost"
|
||||
annotations = "Anotace"
|
||||
images = "Obrázky"
|
||||
links = "Odkazy"
|
||||
fonts = "Písma"
|
||||
xobjects = "Počty XObjectů"
|
||||
multimedia = "Multimédia"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "Stránky"
|
||||
fileSize = "Velikost souboru"
|
||||
pdfVersion = "Verze PDF"
|
||||
language = "Jazyk"
|
||||
title = "Souhrn PDF"
|
||||
author = "Autor"
|
||||
created = "Vytvořeno"
|
||||
modified = "Upraveno"
|
||||
permsAll = "Všechna oprávnění povolena"
|
||||
permsRestricted = "{{count}} omezení"
|
||||
permsMixed = "Některá oprávnění jsou omezena"
|
||||
hasCompliance = "Obsahuje standardy shody"
|
||||
noCompliance = "Žádné standardy shody"
|
||||
basic = "Základní informace"
|
||||
documentInfo = "Informace o dokumentu"
|
||||
securityTitle = "Stav zabezpečení"
|
||||
technical = "Technické"
|
||||
overviewTitle = "Přehled PDF"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "Šifrované PDF – chráněno heslem"
|
||||
unencrypted = "Nešifrované PDF – bez ochrany heslem"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "Obrázky"
|
||||
fonts = "Písma"
|
||||
formFields = "Formulářová pole"
|
||||
embeddedFiles = "Vložené soubory"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Vrstvy"
|
||||
bookmarks = "Záložky"
|
||||
multimedia = "Multimédia"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "nepojmenovaný dokument"
|
||||
unknown = "Neznámý autor"
|
||||
text = "Toto je PDF o {{pages}} stránkách s názvem {{title}} od autora {{author}} (verze PDF {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "Některé soubory se nepodařilo zpracovat."
|
||||
unexpected = "Během extrahování došlo k neočekávané chybě."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "Extrahování dokončeno"
|
||||
|
||||
[extractPage]
|
||||
tags = "extrahovat"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "Prosím přihlaste se"
|
||||
ssoSignIn = "Přihlásit se přes Single Sign-on"
|
||||
oAuth2AutoCreateDisabled = "Automatické vytváření OAUTH2 uživatelů je zakázáno"
|
||||
oAuth2AdminBlockedUser = "Registrace nebo přihlášení neregistrovaných uživatelů je momentálně blokováno. Kontaktujte prosím správce."
|
||||
oAuth2RequiresLicense = "Přihlášení pomocí OAuth/SSO vyžaduje placenou licenci (Server nebo Enterprise). Kontaktujte prosím administrátora kvůli upgradu vašeho plánu."
|
||||
saml2RequiresLicense = "Přihlášení pomocí SAML vyžaduje placenou licenci (Server nebo Enterprise). Kontaktujte prosím administrátora kvůli upgradu vašeho plánu."
|
||||
maxUsersReached = "Byl dosažen maximální počet uživatelů pro vaši aktuální licenci. Kontaktujte prosím administrátora kvůli upgradu vašeho plánu nebo přidání dalších míst."
|
||||
oauth2RequestNotFound = "Požadavek na autorizaci nebyl nalezen"
|
||||
oauth2InvalidUserInfoResponse = "Neplatná odpověď s informacemi o uživateli"
|
||||
oauth2invalidRequest = "Neplatný požadavek"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "Přizpůsobit šířce"
|
||||
actualSize = "Skutečná velikost"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "Nelze zobrazit náhled souboru"
|
||||
dualPageView = "Zobrazení dvou stránek"
|
||||
firstPage = "První stránka"
|
||||
lastPage = "Poslední stránka"
|
||||
previousPage = "Předchozí stránka"
|
||||
nextPage = "Další stránka"
|
||||
onlyPdfSupported = "Prohlížeč podporuje pouze soubory PDF. Tento soubor má zřejmě jiný formát."
|
||||
previousPage = "Předchozí stránka"
|
||||
singlePageView = "Zobrazení jedné stránky"
|
||||
unknownFile = "Neznámý soubor"
|
||||
zoomIn = "Přiblížit"
|
||||
zoomOut = "Oddálit"
|
||||
singlePageView = "Zobrazení jedné stránky"
|
||||
dualPageView = "Zobrazení dvou stránek"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "Zavřít vybrané soubory"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "Přepnout postranní panel"
|
||||
exportSelected = "Exportovat vybrané stránky"
|
||||
toggleAnnotations = "Přepnout viditelnost anotací"
|
||||
annotationMode = "Přepnout režim anotací"
|
||||
print = "Tisk PDF"
|
||||
draw = "Kreslit"
|
||||
save = "Uložit"
|
||||
saveChanges = "Uložit změny"
|
||||
@@ -4153,7 +4261,7 @@ description = "Sledovat akce uživatelů a systémové události pro compliance
|
||||
|
||||
[admin.settings.security.audit.level]
|
||||
label = "Úroveň auditu"
|
||||
description = "0=OFF, 1=BASIC, 2=STANDARD, 3=VERBOSE"
|
||||
description = "0=VYPNUTO, 1=ZÁKLADNÍ, 2=STANDARDNÍ, 3=PODROBNÝ"
|
||||
|
||||
[admin.settings.security.audit.retentionDays]
|
||||
label = "Doba uchování auditů (dny)"
|
||||
@@ -4494,6 +4602,7 @@ description = "URL nebo název souboru k Impressu (vyžadováno v některých ju
|
||||
title = "Premium a Enterprise"
|
||||
description = "Nakonfigurujte svůj prémiový nebo enterprise licenční klíč."
|
||||
license = "Konfigurace licence"
|
||||
noInput = "Zadejte licenční klíč nebo soubor"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "Máte licenční klíč nebo certifikační soubor?"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "Přepsání aktuálního licenčního klíče nelze vrátit zpět."
|
||||
line2 = "Předchozí licence bude trvale ztracena, pokud ji nemáte zálohovanou jinde."
|
||||
line3 = "Důležité: Uchovávejte licenční klíče v soukromí a v bezpečí. Nikdy je nesdílejte veřejně."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "Licenční klíč"
|
||||
file = "Soubor certifikátu"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "Soubor licenčního certifikátu"
|
||||
description = "Nahrajte svůj licenční soubor .lic nebo .cert z offline nákupu"
|
||||
choose = "Vybrat licenční soubor"
|
||||
selected = "Vybráno: {{filename}} ({{size}})"
|
||||
successMessage = "Licenční soubor byl úspěšně nahrán a aktivován. Restart není vyžadován."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "Aktivní licence"
|
||||
file = "Zdroj: Licenční soubor ({{path}})"
|
||||
key = "Zdroj: Licenční klíč"
|
||||
type = "Typ: {{type}}"
|
||||
noInput = "Zadejte licenční klíč nebo nahrajte soubor certifikátu"
|
||||
success = "Úspěch"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "Povolit prémiové funkce"
|
||||
description = "Povolit kontrolu licenčního klíče pro pro/enterprise funkce"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} vybráno"
|
||||
download = "Stáhnout"
|
||||
delete = "Smazat"
|
||||
unsupported = "Nepodporováno"
|
||||
active = "Aktivní"
|
||||
addToUpload = "Přidat k nahrání"
|
||||
closeFile = "Zavřít soubor"
|
||||
deleteAll = "Smazat vše"
|
||||
loadingFiles = "Načítání souborů..."
|
||||
noFiles = "Nejsou k dispozici žádné soubory"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "Upgradovat nyní →"
|
||||
freeTitle = "Serverová licence"
|
||||
overLimitTitle = "Vyžadována serverová licence"
|
||||
overLimitBody = "Naše licencování umožňuje až <strong>{{freeTierLimit}}</strong> uživatelů zdarma na server. Máte <strong>{{overLimitUserCopy}}</strong> uživatelů Stirling. Pro nepřerušené používání přejděte na plán Stirling Server – <strong>neomezený počet míst</strong>, úpravy textu PDF a plná správa za 99 $/server/měsíc."
|
||||
freeBody = "Naše licencování <strong>Open-Core</strong> umožňuje až <strong>{{freeTierLimit}}</strong> uživatelů zdarma na server. Pro nepřerušený růst a přednostní přístup k našemu novému <strong>nástroji pro úpravu textu PDF</strong> doporučujeme plán Stirling Server – plné úpravy a <strong>neomezený počet míst</strong> za 99 $/server/měsíc."
|
||||
freeBody = "Naše licencování <strong>Open-Core</strong> umožňuje až <strong>{{freeTierLimit}}</strong> uživatelů zdarma na server. Pro nepřerušované škálování doporučujeme plán Stirling Server - <strong>neomezený počet míst</strong> a <strong>podpora SSO</strong> za $99/server/měs."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "Stáhnout"
|
||||
@@ -5237,6 +5367,31 @@ error = "Nepodařilo se aktualizovat stav uživatele"
|
||||
success = "Uživatel úspěšně smazán"
|
||||
error = "Nepodařilo se smazat uživatele"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "Změnit heslo"
|
||||
title = "Změna hesla"
|
||||
subtitle = "Aktualizovat heslo pro"
|
||||
newPassword = "Nové heslo"
|
||||
confirmPassword = "Potvrzení hesla"
|
||||
placeholder = "Zadejte nové heslo"
|
||||
confirmPlaceholder = "Zadejte nové heslo znovu"
|
||||
passwordRequired = "Zadejte prosím nové heslo"
|
||||
passwordMismatch = "Hesla se neshodují"
|
||||
generateRandom = "Vygenerovat bezpečné heslo"
|
||||
generatedPreview = "Vygenerované heslo:"
|
||||
copyTooltip = "Zkopírovat do schránky"
|
||||
copiedToClipboard = "Heslo zkopírováno do schránky"
|
||||
copyFailed = "Heslo se nepodařilo zkopírovat"
|
||||
sendEmail = "Odeslat uživateli e-mail o této změně"
|
||||
includePassword = "Zahrnout nové heslo do e-mailu"
|
||||
forcePasswordChange = "Vynutit změnu hesla při příštím přihlášení"
|
||||
emailUnavailable = "E-mailová adresa tohoto uživatele není platná. Oznámení jsou deaktivována."
|
||||
smtpDisabled = "E-mailová oznámení vyžadují, aby bylo v nastavení povoleno SMTP."
|
||||
notifyOnly = "Bude odeslán e-mail bez hesla, který uživateli oznámí, že ho změnil administrátor."
|
||||
submit = "Aktualizovat heslo"
|
||||
success = "Heslo bylo úspěšně aktualizováno"
|
||||
error = "Heslo se nepodařilo aktualizovat"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "Pozvánka e‑mailem"
|
||||
description = "Níže napište nebo vložte e‑maily oddělené čárkami. Uživatelé obdrží přihlašovací údaje e‑mailem."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "uzivatel1@priklad.cz, uzivatel2@priklad.cz"
|
||||
emailsRequired = "Je vyžadována alespoň jedna e‑mailová adresa"
|
||||
submit = "Odeslat pozvánky"
|
||||
success = "uživatel(é) úspěšně pozváni"
|
||||
partialSuccess = "Některé pozvánky se nepodařilo odeslat"
|
||||
partialFailure = "Některá pozvání selhala"
|
||||
allFailed = "Nepodařilo se pozvat uživatele"
|
||||
error = "Nepodařilo se odeslat pozvánky"
|
||||
|
||||
@@ -5709,7 +5864,7 @@ title = "Graf využití endpointů"
|
||||
|
||||
[usage.table]
|
||||
title = "Podrobné statistiky"
|
||||
endpoint = "Endpoint"
|
||||
endpoint = "Koncový bod"
|
||||
visits = "Návštěvy"
|
||||
percentage = "Procenta"
|
||||
noData = "Žádná data nejsou k dispozici"
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "Přihlaste se svým účtem Stirling"
|
||||
[setup.selfhosted]
|
||||
title = "Přihlásit se k serveru"
|
||||
subtitle = "Zadejte přihlašovací údaje k vašemu serveru"
|
||||
link = "nebo se připojte k účtu s vlastním hostováním"
|
||||
|
||||
[setup.server]
|
||||
title = "Připojit k serveru"
|
||||
@@ -5788,6 +5944,14 @@ description = "Zadejte úplnou URL vašeho samohostovaného serveru Stirling PDF
|
||||
emptyUrl = "Zadejte URL serveru"
|
||||
unreachable = "Nelze se připojit k serveru"
|
||||
testFailed = "Test připojení selhal"
|
||||
configFetch = "Nepodařilo se načíst konfiguraci serveru. Zkontrolujte prosím URL a zkuste to znovu."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "Přihlášení není povoleno"
|
||||
body = "Na tomto serveru není povoleno přihlašování. Pokud se chcete připojit, musíte povolit ověřování:"
|
||||
step1 = "Nastavte DOCKER_ENABLE_SECURITY=true ve svém prostředí"
|
||||
step2 = "Nebo nastavte security.enableLogin=true v souboru settings.yml"
|
||||
step3 = "Restartujte server"
|
||||
|
||||
[setup.login]
|
||||
title = "Přihlášení"
|
||||
@@ -5797,6 +5961,13 @@ submit = "Přihlásit se"
|
||||
signInWith = "Přihlásit se pomocí"
|
||||
oauthPending = "Otevírám prohlížeč pro ověření..."
|
||||
orContinueWith = "Nebo pokračovat e-mailem"
|
||||
serverRequirement = "Poznámka: Na serveru musí být povoleno přihlášení."
|
||||
showInstructions = "Jak povolit?"
|
||||
hideInstructions = "Skrýt pokyny"
|
||||
instructions = "Chcete-li povolit přihlášení na vašem serveru Stirling PDF:"
|
||||
instructionsEnvVar = "Nastavte proměnnou prostředí:"
|
||||
instructionsOrYml = "Nebo v settings.yml:"
|
||||
instructionsRestart = "Poté restartujte server, aby se změny projevily."
|
||||
|
||||
[setup.login.username]
|
||||
label = "Uživatelské jméno"
|
||||
@@ -5840,7 +6011,7 @@ paragraph = "Odstavcová stránka"
|
||||
sparse = "Řídký text"
|
||||
|
||||
[pdfTextEditor.groupingMode]
|
||||
auto = "Auto"
|
||||
auto = "Automaticky"
|
||||
paragraph = "Odstavec"
|
||||
singleLine = "Jeden řádek"
|
||||
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "Předběžný přístup"
|
||||
reset = "Obnovit změny"
|
||||
downloadJson = "Stáhnout JSON"
|
||||
generatePdf = "Vytvořit PDF"
|
||||
saveChanges = "Uložit změny"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "Automaticky přizpůsobit text rámečkům"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "Tento alfa prohlížeč se stále vyvíjí — některé fonty, barvy,
|
||||
[pdfTextEditor.empty]
|
||||
title = "Není načten žádný dokument"
|
||||
subtitle = "Načtěte soubor PDF nebo JSON a začněte upravovat text."
|
||||
dropzone = "Sem přetáhněte soubor PDF nebo JSON, případně kliknutím vyberte"
|
||||
dropzoneWithFiles = "Vyberte soubor na kartě Soubory, nebo sem přetáhněte soubor PDF či JSON, případně kliknutím vyberte"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "Vítejte v editoru textu PDF (předběžný přístup)"
|
||||
@@ -5932,13 +6106,13 @@ warnings = "Varování"
|
||||
suggestions = "Poznámky"
|
||||
currentPageFonts = "Fonty na této stránce"
|
||||
allFonts = "Všechny fonty"
|
||||
fallback = "fallback"
|
||||
fallback = "náhradní"
|
||||
missing = "chybí"
|
||||
perfectMessage = "Všechny fonty lze reprodukovat dokonale."
|
||||
warningMessage = "Některé fonty se nemusí vykreslit správně."
|
||||
infoMessage = "K dispozici jsou informace o reprodukci fontů."
|
||||
perfect = "perfect"
|
||||
subset = "subset"
|
||||
perfect = "dokonalé"
|
||||
subset = "podmnožina"
|
||||
|
||||
[pdfTextEditor.errors]
|
||||
invalidJson = "Nelze přečíst soubor JSON. Ujistěte se, že byl vytvořen nástrojem PDF to JSON."
|
||||
|
||||
@@ -163,6 +163,11 @@ unfavorite = "Fjern fra favoritter"
|
||||
fullscreen = "Skift til fuldskærmstilstand"
|
||||
sidebar = "Skift til sidepanel-tilstand"
|
||||
|
||||
[backendStartup]
|
||||
notFoundTitle = "Backend ikke fundet"
|
||||
retry = "Prøv igen"
|
||||
unreachable = "Programmet kan i øjeblikket ikke forbinde til backend. Kontroller backend-status og netværksforbindelse, og prøv igen."
|
||||
|
||||
[zipWarning]
|
||||
title = "Stor ZIP-fil"
|
||||
message = "Denne ZIP indeholder {{count}} filer. Udpak alligevel?"
|
||||
@@ -347,7 +352,7 @@ teams = "Teams"
|
||||
title = "Konfiguration"
|
||||
systemSettings = "Systemindstillinger"
|
||||
features = "Funktioner"
|
||||
endpoints = "Endpoints"
|
||||
endpoints = "Slutpunkter"
|
||||
database = "Database"
|
||||
advanced = "Avanceret"
|
||||
|
||||
@@ -359,7 +364,7 @@ connections = "Forbindelser"
|
||||
[settings.licensingAnalytics]
|
||||
title = "Licensering & Analytics"
|
||||
plan = "Plan"
|
||||
audit = "Audit"
|
||||
audit = "Revision"
|
||||
usageAnalytics = "Brugsanalyse"
|
||||
|
||||
[settings.policiesPrivacy]
|
||||
@@ -556,13 +561,13 @@ totalEndpoints = "Endpoints i alt"
|
||||
totalVisits = "Besøg i alt"
|
||||
showing = "Viser"
|
||||
selectedVisits = "Valgte besøg"
|
||||
endpoint = "Endpoint"
|
||||
endpoint = "Slutpunkt"
|
||||
visits = "Besøg"
|
||||
percentage = "Procent"
|
||||
loading = "Laster..."
|
||||
failedToLoad = "Kunne ikke indlæse endpoint-data. Prøv at opdatere."
|
||||
home = "Hjem"
|
||||
login = "Login"
|
||||
login = "Log ind"
|
||||
top = "Top"
|
||||
numberOfVisits = "Antal besøg"
|
||||
visitsTooltip = "Besøg: {0} ({1}% af totalen)"
|
||||
@@ -912,6 +917,9 @@ desc = "Byg flertrins-workflows ved at kæde PDF-handlinger sammen. Ideelt til t
|
||||
desc = "Overlejrer PDF'er oven på en anden PDF"
|
||||
title = "Overlejr PDF'er"
|
||||
|
||||
[home.pdfTextEditor]
|
||||
title = "PDF-teksteditor"
|
||||
desc = "Rediger eksisterende tekst og billeder i PDF'er"
|
||||
|
||||
[home.addText]
|
||||
tags = "tekst,annotering,etiket"
|
||||
@@ -1173,7 +1181,7 @@ selectFilesPlaceholder = "Vælg filer i hovedvisningen for at komme i gang"
|
||||
settings = "Indstillinger"
|
||||
conversionCompleted = "Konvertering fuldført"
|
||||
results = "Resultater"
|
||||
defaultFilename = "converted_file"
|
||||
defaultFilename = "konverteret_fil"
|
||||
conversionResults = "Konverteringsresultater"
|
||||
convertFrom = "Konvertér fra"
|
||||
convertTo = "Konvertér til"
|
||||
@@ -1213,9 +1221,9 @@ pdfaDigitalSignatureWarning = "PDF'en indeholder en digital signatur. Dette vil
|
||||
fileFormat = "Filformat"
|
||||
wordDoc = "Word-dokument"
|
||||
wordDocExt = "Word-dokument (.docx)"
|
||||
odtExt = "OpenDocument Text (.odt)"
|
||||
odtExt = "OpenDocument-tekst (.odt)"
|
||||
pptExt = "PowerPoint (.pptx)"
|
||||
odpExt = "OpenDocument Presentation (.odp)"
|
||||
odpExt = "OpenDocument-præsentation (.odp)"
|
||||
txtExt = "Almindelig tekst (.txt)"
|
||||
rtfExt = "Rich Text Format (.rtf)"
|
||||
selectedFiles = "Valgte filer"
|
||||
@@ -2259,8 +2267,16 @@ defaultCanvasLabel = "Tegnet signatur"
|
||||
defaultImageLabel = "Uploadet signatur"
|
||||
defaultTextLabel = "Indtastet signatur"
|
||||
saveButton = "Gem signatur"
|
||||
savePersonal = "Gem personlig"
|
||||
saveShared = "Gem delt"
|
||||
saveUnavailable = "Opret først en signatur for at gemme den."
|
||||
noChanges = "Nuværende signatur er allerede gemt."
|
||||
tempStorageTitle = "Midlertidig browserlagring"
|
||||
tempStorageDescription = "Signaturer gemmes kun i din browser. De går tabt, hvis du rydder browserdata eller skifter browser."
|
||||
personalHeading = "Personlige signaturer"
|
||||
sharedHeading = "Delte signaturer"
|
||||
personalDescription = "Kun du kan se disse signaturer."
|
||||
sharedDescription = "Alle brugere kan se og bruge disse signaturer."
|
||||
|
||||
[sign.saved.type]
|
||||
canvas = "Tegning"
|
||||
@@ -3020,6 +3036,91 @@ title = "Få Info om PDF"
|
||||
header = "Få Info om PDF"
|
||||
submit = "Få Info"
|
||||
downloadJson = "Download JSON"
|
||||
processing = "Udtrækker oplysninger..."
|
||||
results = "Resultater"
|
||||
noResults = "Kør værktøjet for at generere en rapport."
|
||||
downloads = "Downloads"
|
||||
noneDetected = "Ingen registreret"
|
||||
indexTitle = "Indeks"
|
||||
|
||||
[getPdfInfo.report]
|
||||
entryLabel = "Fuldt informationsresumé"
|
||||
shortTitle = "PDF-oplysninger"
|
||||
|
||||
[getPdfInfo.sections]
|
||||
metadata = "Metadata"
|
||||
formFields = "Formularfelter"
|
||||
basicInfo = "Grundlæggende info"
|
||||
documentInfo = "Dokumentinfo"
|
||||
compliance = "Overensstemmelse"
|
||||
encryption = "Kryptering"
|
||||
permissions = "Tilladelser"
|
||||
other = "Andet"
|
||||
perPageInfo = "Info pr. side"
|
||||
tableOfContents = "Indholdsfortegnelse"
|
||||
|
||||
[getPdfInfo.other]
|
||||
attachments = "Vedhæftninger"
|
||||
embeddedFiles = "Indlejrede filer"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Lag"
|
||||
structureTree = "StructureTree"
|
||||
xmp = "XMPMetadata"
|
||||
|
||||
[getPdfInfo.perPage]
|
||||
size = "Størrelse"
|
||||
annotations = "Anmærkninger"
|
||||
images = "Billeder"
|
||||
links = "Links"
|
||||
fonts = "Skrifttyper"
|
||||
xobjects = "Antal XObjects"
|
||||
multimedia = "Multimedie"
|
||||
|
||||
[getPdfInfo.summary]
|
||||
pages = "Sider"
|
||||
fileSize = "Filstørrelse"
|
||||
pdfVersion = "PDF-version"
|
||||
language = "Sprog"
|
||||
title = "PDF-resumé"
|
||||
author = "Forfatter"
|
||||
created = "Oprettet"
|
||||
modified = "Ændret"
|
||||
permsAll = "Alle tilladelser tilladt"
|
||||
permsRestricted = "{{count}} begrænsninger"
|
||||
permsMixed = "Nogle tilladelser er begrænsede"
|
||||
hasCompliance = "Har overensstemmelsesstandarder"
|
||||
noCompliance = "Ingen overensstemmelsesstandarder"
|
||||
basic = "Grundlæggende oplysninger"
|
||||
documentInfo = "Dokumentoplysninger"
|
||||
securityTitle = "Sikkerhedsstatus"
|
||||
technical = "Teknisk"
|
||||
overviewTitle = "PDF-oversigt"
|
||||
|
||||
[getPdfInfo.summary.security]
|
||||
encrypted = "Krypteret PDF - med adgangskodebeskyttelse"
|
||||
unencrypted = "Ukrypteret PDF - ingen adgangskodebeskyttelse"
|
||||
|
||||
[getPdfInfo.summary.tech]
|
||||
images = "Billeder"
|
||||
fonts = "Skrifttyper"
|
||||
formFields = "Formularfelter"
|
||||
embeddedFiles = "Indlejrede filer"
|
||||
javaScript = "JavaScript"
|
||||
layers = "Lag"
|
||||
bookmarks = "Bogmærker"
|
||||
multimedia = "Multimedie"
|
||||
|
||||
[getPdfInfo.summary.overview]
|
||||
untitled = "et dokument uden titel"
|
||||
unknown = "Ukendt forfatter"
|
||||
text = "Dette er en PDF på {{pages}} sider med titlen {{title}}, oprettet af {{author}} (PDF-version {{version}})."
|
||||
|
||||
[getPdfInfo.error]
|
||||
partial = "Nogle filer kunne ikke behandles."
|
||||
unexpected = "Uventet fejl under udtrækning."
|
||||
|
||||
[getPdfInfo.status]
|
||||
complete = "Udtrækning fuldført"
|
||||
|
||||
[extractPage]
|
||||
tags = "udtræk"
|
||||
@@ -3438,6 +3539,9 @@ signinTitle = "Log venligst ind"
|
||||
ssoSignIn = "Log ind via Single Sign-on"
|
||||
oAuth2AutoCreateDisabled = "OAUTH2 Auto-Opret Bruger Deaktiveret"
|
||||
oAuth2AdminBlockedUser = "Registrering eller login af ikke-registrerede brugere er i øjeblikket blokeret. Kontakt venligst administratoren."
|
||||
oAuth2RequiresLicense = "OAuth/SSO-login kræver en betalt licens (Server eller Enterprise). Kontakt administratoren for at opgradere din plan."
|
||||
saml2RequiresLicense = "SAML-login kræver en betalt licens (Server eller Enterprise). Kontakt administratoren for at opgradere din plan."
|
||||
maxUsersReached = "Maksimalt antal brugere er nået for din nuværende licens. Kontakt administratoren for at opgradere din plan eller tilføje flere pladser."
|
||||
oauth2RequestNotFound = "Autorisationsanmodning ikke fundet"
|
||||
oauth2InvalidUserInfoResponse = "Ugyldigt Brugerinfo Svar"
|
||||
oauth2invalidRequest = "Ugyldig Anmodning"
|
||||
@@ -3771,7 +3875,7 @@ version = "Nuværende udgivelse"
|
||||
title = "API-dokumentation"
|
||||
header = "API-dokumentation"
|
||||
desc = "Se og test Stirling PDF API-endpoints"
|
||||
tags = "api,documentation,swagger,endpoints,development"
|
||||
tags = "api,dokumentation,swagger,endepunkter,udvikling"
|
||||
|
||||
[cookieBanner.popUp]
|
||||
title = "Sådan bruger vi cookies"
|
||||
@@ -3846,14 +3950,17 @@ fitToWidth = "Tilpas til bredde"
|
||||
actualSize = "Faktisk størrelse"
|
||||
|
||||
[viewer]
|
||||
cannotPreviewFile = "Kan ikke forhåndsvise fil"
|
||||
dualPageView = "To-siders visning"
|
||||
firstPage = "Første side"
|
||||
lastPage = "Sidste side"
|
||||
previousPage = "Forrige side"
|
||||
nextPage = "Næste side"
|
||||
onlyPdfSupported = "Visningen understøtter kun PDF-filer. Denne fil ser ud til at være et andet format."
|
||||
previousPage = "Forrige side"
|
||||
singlePageView = "Enkelt-sides visning"
|
||||
unknownFile = "Ukendt fil"
|
||||
zoomIn = "Zoom ind"
|
||||
zoomOut = "Zoom ud"
|
||||
singlePageView = "Enkelt-sides visning"
|
||||
dualPageView = "To-siders visning"
|
||||
|
||||
[rightRail]
|
||||
closeSelected = "Luk valgte filer"
|
||||
@@ -3877,6 +3984,7 @@ toggleSidebar = "Skift sidepanel"
|
||||
exportSelected = "Eksporter valgte sider"
|
||||
toggleAnnotations = "Skift visning af annoteringer"
|
||||
annotationMode = "Skift annoteringstilstand"
|
||||
print = "Udskriv PDF"
|
||||
draw = "Tegn"
|
||||
save = "Gem"
|
||||
saveChanges = "Gem ændringer"
|
||||
@@ -4235,11 +4343,11 @@ label = "Issuer-URL"
|
||||
description = "OAuth2-udbyderens issuer-URL"
|
||||
|
||||
[admin.settings.connections.oauth2.clientId]
|
||||
label = "Client ID"
|
||||
label = "Klient-ID"
|
||||
description = "OAuth2 Client ID fra din udbyder"
|
||||
|
||||
[admin.settings.connections.oauth2.clientSecret]
|
||||
label = "Client Secret"
|
||||
label = "Klienthemmelighed"
|
||||
description = "OAuth2 Client Secret fra din udbyder"
|
||||
|
||||
[admin.settings.connections.oauth2.useAsUsername]
|
||||
@@ -4343,7 +4451,7 @@ features = "Funktionsflag"
|
||||
processing = "Behandling"
|
||||
|
||||
[admin.settings.advanced.endpoints]
|
||||
label = "Endpoints"
|
||||
label = "Slutpunkter"
|
||||
manage = "Administrer API-endpoints"
|
||||
description = "Endpointstyring konfigureres via YAML. Se dokumentationen for detaljer om aktivering/deaktivering af specifikke endpoints."
|
||||
|
||||
@@ -4494,6 +4602,7 @@ description = "URL eller filnavn til impressum (påkrævet i nogle jurisdiktione
|
||||
title = "Premium og Enterprise"
|
||||
description = "Konfigurer din premium- eller enterprise-licensnøgle."
|
||||
license = "Licenskonfiguration"
|
||||
noInput = "Angiv en licensnøgle eller fil"
|
||||
|
||||
[admin.settings.premium.licenseKey]
|
||||
toggle = "Har du en licensnøgle eller en certifikatfil?"
|
||||
@@ -4511,6 +4620,25 @@ line1 = "Overskrivning af din nuværende licensnøgle kan ikke fortrydes."
|
||||
line2 = "Din tidligere licens går permanent tabt, medmindre du har sikkerhedskopieret den andetsteds."
|
||||
line3 = "Vigtigt: Hold licensnøgler private og sikre. Del dem aldrig offentligt."
|
||||
|
||||
[admin.settings.premium.inputMethod]
|
||||
text = "Licensnøgle"
|
||||
file = "Certifikatfil"
|
||||
|
||||
[admin.settings.premium.file]
|
||||
label = "Licenscertifikatfil"
|
||||
description = "Upload din .lic- eller .cert-licensfil fra offlinekøb"
|
||||
choose = "Vælg licensfil"
|
||||
selected = "Valgt: {{filename}} ({{size}})"
|
||||
successMessage = "Licensfil uploadet og aktiveret. Genstart er ikke påkrævet."
|
||||
|
||||
[admin.settings.premium.currentLicense]
|
||||
title = "Aktiv licens"
|
||||
file = "Kilde: Licensfil ({{path}})"
|
||||
key = "Kilde: Licensnøgle"
|
||||
type = "Type: {{type}}"
|
||||
noInput = "Angiv en licensnøgle eller upload en certifikatfil"
|
||||
success = "Succes"
|
||||
|
||||
[admin.settings.premium.enabled]
|
||||
label = "Aktivér premium-funktioner"
|
||||
description = "Aktivér licensnøgletjek for pro-/enterprise-funktioner"
|
||||
@@ -4644,7 +4772,9 @@ selectedCount = "{{count}} valgt"
|
||||
download = "Download"
|
||||
delete = "Slet"
|
||||
unsupported = "Ikke understøttet"
|
||||
active = "Aktiv"
|
||||
addToUpload = "Føj til upload"
|
||||
closeFile = "Luk fil"
|
||||
deleteAll = "Slet alle"
|
||||
loadingFiles = "Indlæser filer..."
|
||||
noFiles = "Ingen filer tilgængelige"
|
||||
@@ -5132,7 +5262,7 @@ upgrade = "Opgrader nu →"
|
||||
freeTitle = "Serverlicens"
|
||||
overLimitTitle = "Serverlicens påkrævet"
|
||||
overLimitBody = "Vores licens tillader op til <strong>{{freeTierLimit}}</strong> brugere gratis pr. server. Du har <strong>{{overLimitUserCopy}}</strong> Stirling-brugere. For at fortsætte uden afbrydelser skal du opgradere til Stirling Server-abonnementet – <strong>ubegrænsede pladser</strong>, PDF-tekstredigering og fuld admin-kontrol for $99/server/md."
|
||||
freeBody = "Vores <strong>Open-Core</strong>-licens tillader op til <strong>{{freeTierLimit}}</strong> brugere gratis pr. server. For at skalere uden afbrydelser og få tidlig adgang til vores nye <strong>PDF-tekstredigeringsværktøj</strong> anbefaler vi Stirling Server-planen – fuld redigering og <strong>ubegrænsede pladser</strong> for $99/server/md."
|
||||
freeBody = "Vores <strong>Open-Core</strong>-licens tillader op til <strong>{{freeTierLimit}}</strong> brugere gratis pr. server. For at skalere uden afbrydelser anbefaler vi Stirling Server-planen – <strong>ubegrænsede pladser</strong> og <strong>SSO-understøttelse</strong> for $99/server/md."
|
||||
|
||||
[onboarding.desktopInstall]
|
||||
title = "Download"
|
||||
@@ -5237,6 +5367,31 @@ error = "Kunne ikke opdatere brugerstatus"
|
||||
success = "Bruger slettet"
|
||||
error = "Kunne ikke slette bruger"
|
||||
|
||||
[workspace.people.changePassword]
|
||||
action = "Skift adgangskode"
|
||||
title = "Skift adgangskode"
|
||||
subtitle = "Opdater adgangskoden for"
|
||||
newPassword = "Ny adgangskode"
|
||||
confirmPassword = "Bekræft adgangskode"
|
||||
placeholder = "Indtast en ny adgangskode"
|
||||
confirmPlaceholder = "Indtast den nye adgangskode igen"
|
||||
passwordRequired = "Angiv en ny adgangskode"
|
||||
passwordMismatch = "Adgangskoderne matcher ikke"
|
||||
generateRandom = "Generér sikker adgangskode"
|
||||
generatedPreview = "Genereret adgangskode:"
|
||||
copyTooltip = "Kopiér til udklipsholder"
|
||||
copiedToClipboard = "Adgangskode kopieret til udklipsholderen"
|
||||
copyFailed = "Kunne ikke kopiere adgangskoden"
|
||||
sendEmail = "Send en e-mail til brugeren om denne ændring"
|
||||
includePassword = "Medtag den nye adgangskode i e-mailen"
|
||||
forcePasswordChange = "Tving brugeren til at ændre adgangskode ved næste login"
|
||||
emailUnavailable = "Denne brugers e-mail er ikke en gyldig e-mailadresse. Meddelelser er deaktiveret."
|
||||
smtpDisabled = "E-mailmeddelelser kræver, at SMTP er aktiveret i indstillingerne."
|
||||
notifyOnly = "Der sendes en e-mail uden adgangskoden, som informerer brugeren om, at en administrator har ændret den."
|
||||
submit = "Opdater adgangskode"
|
||||
success = "Adgangskoden blev opdateret"
|
||||
error = "Kunne ikke opdatere adgangskoden"
|
||||
|
||||
[workspace.people.emailInvite]
|
||||
tab = "E-mailinvitation"
|
||||
description = "Skriv eller indsæt e-mails nedenfor, adskilt af kommaer. Brugere modtager loginoplysninger via e-mail."
|
||||
@@ -5245,7 +5400,7 @@ emailsPlaceholder = "user1@example.com, user2@example.com"
|
||||
emailsRequired = "Mindst én e-mailadresse er påkrævet"
|
||||
submit = "Send invitationer"
|
||||
success = "Bruger(e) inviteret"
|
||||
partialSuccess = "Nogle invitationer mislykkedes"
|
||||
partialFailure = "Nogle invitationer mislykkedes"
|
||||
allFailed = "Kunne ikke invitere brugere"
|
||||
error = "Kunne ikke sende invitationer"
|
||||
|
||||
@@ -5288,8 +5443,8 @@ emailDisabled = "E-mailinvitationer kræver SMTP-konfiguration og mail.enableInv
|
||||
[workspace.people.license]
|
||||
users = "brugere"
|
||||
availableSlots = "Tilgængelige pladser"
|
||||
grandfathered = "Grandfathered"
|
||||
grandfatheredShort = "{{count}} grandfathered"
|
||||
grandfathered = "På gamle vilkår"
|
||||
grandfatheredShort = "{{count}} på gamle vilkår"
|
||||
fromLicense = "fra licens"
|
||||
slotsAvailable = "{{count}} ledig(e) brugerplads(er)"
|
||||
noSlotsAvailable = "Ingen pladser tilgængelige"
|
||||
@@ -5709,7 +5864,7 @@ title = "Diagram over endpoint-brug"
|
||||
|
||||
[usage.table]
|
||||
title = "Detaljeret statistik"
|
||||
endpoint = "Endpoint"
|
||||
endpoint = "Slutpunkt"
|
||||
visits = "Besøg"
|
||||
percentage = "Procent"
|
||||
noData = "Ingen data tilgængelige"
|
||||
@@ -5752,7 +5907,7 @@ label = "Vælg server"
|
||||
description = "Selvhostet server"
|
||||
|
||||
[setup.step3]
|
||||
label = "Login"
|
||||
label = "Log ind"
|
||||
description = "Indtast loginoplysninger"
|
||||
|
||||
[setup.mode.saas]
|
||||
@@ -5770,6 +5925,7 @@ subtitle = "Log ind med din Stirling-konto"
|
||||
[setup.selfhosted]
|
||||
title = "Log ind på server"
|
||||
subtitle = "Indtast dine server-loginoplysninger"
|
||||
link = "eller opret forbindelse til en selvhostet konto"
|
||||
|
||||
[setup.server]
|
||||
title = "Forbind til server"
|
||||
@@ -5788,6 +5944,14 @@ description = "Indtast den fulde URL til din selvhostede Stirling PDF-server"
|
||||
emptyUrl = "Indtast en server-URL"
|
||||
unreachable = "Kunne ikke forbinde til server"
|
||||
testFailed = "Forbindelsestest mislykkedes"
|
||||
configFetch = "Kunne ikke hente serverkonfiguration. Kontrollér URL'en, og prøv igen."
|
||||
|
||||
[setup.server.error.securityDisabled]
|
||||
title = "Login ikke aktiveret"
|
||||
body = "Denne server har ikke login aktiveret. For at oprette forbindelse til denne server skal du aktivere godkendelse:"
|
||||
step1 = "Sæt DOCKER_ENABLE_SECURITY=true i dit miljø"
|
||||
step2 = "Eller sæt security.enableLogin=true i settings.yml"
|
||||
step3 = "Genstart serveren"
|
||||
|
||||
[setup.login]
|
||||
title = "Log ind"
|
||||
@@ -5797,6 +5961,13 @@ submit = "Log ind"
|
||||
signInWith = "Log ind med"
|
||||
oauthPending = "Åbner browser for godkendelse..."
|
||||
orContinueWith = "Eller fortsæt med email"
|
||||
serverRequirement = "Bemærk: Serveren skal have login aktiveret."
|
||||
showInstructions = "Hvordan aktiveres det?"
|
||||
hideInstructions = "Skjul instruktioner"
|
||||
instructions = "Sådan aktiverer du login på din Stirling PDF-server:"
|
||||
instructionsEnvVar = "Sæt miljøvariablen:"
|
||||
instructionsOrYml = "Eller i settings.yml:"
|
||||
instructionsRestart = "Genstart derefter serveren, så ændringerne træder i kraft."
|
||||
|
||||
[setup.login.username]
|
||||
label = "Brugernavn"
|
||||
@@ -5853,6 +6024,7 @@ earlyAccess = "Tidlig adgang"
|
||||
reset = "Nulstil ændringer"
|
||||
downloadJson = "Download JSON"
|
||||
generatePdf = "Generer PDF"
|
||||
saveChanges = "Gem ændringer"
|
||||
|
||||
[pdfTextEditor.options.autoScaleText]
|
||||
title = "Autoskalér tekst, så den passer i bokse"
|
||||
@@ -5890,6 +6062,8 @@ alpha = "Denne alpha-fremviser er stadig under udvikling—visse skrifttyper, fa
|
||||
[pdfTextEditor.empty]
|
||||
title = "Intet dokument indlæst"
|
||||
subtitle = "Indlæs en PDF- eller JSON-fil for at begynde at redigere tekstindhold."
|
||||
dropzone = "Træk og slip en PDF- eller JSON-fil her, eller klik for at gennemse"
|
||||
dropzoneWithFiles = "Vælg en fil fra fanen Filer, eller træk og slip en PDF- eller JSON-fil her, eller klik for at gennemse"
|
||||
|
||||
[pdfTextEditor.welcomeBanner]
|
||||
title = "Velkommen til PDF-teksteditor (Early Access)"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user