Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add translations for most common languages #323

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions osm_fieldwork/update_xlsform.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ def create_survey_group(name: str) -> dict[str, pd.DataFrame]:
"label::swahili(sw)": [name],
"label::french(fr)": [name],
"label::spanish(es)": [name],
"label::italian(it)": [name],
"label::nepali(ne)": [name],
"label::hindi(hi)": [name],
"label::tamil(ta)": [name],
"label::bengali(bn)": [name],
"label::chinese simplified(zh-hans)": [name],
"label::chinese traditional(zh-hant)": [name],
"relevant": "(${new_feature} != '') or (${building_exists} = 'yes')",
}
)
Expand Down Expand Up @@ -198,6 +205,13 @@ def append_select_one_from_file_row(df: pd.DataFrame, entity_name: str) -> pd.Da
"label::swahili(sw)": [entity_name],
"label::french(fr)": [entity_name],
"label::spanish(es)": [entity_name],
"label::italian(it)": [entity_name],
"label::nepali(ne)": [entity_name],
"label::hindi(hi)": [entity_name],
"label::tamil(ta)": [entity_name],
"label::bengali(bn)": [entity_name],
"label::chinese simplified(zh-hans)": [entity_name],
"label::chinese traditional(zh-hant)": [entity_name],
}
)

Expand All @@ -211,6 +225,13 @@ def append_select_one_from_file_row(df: pd.DataFrame, entity_name: str) -> pd.Da
"label::Swahili(sw)": ["additional_geometry"],
"label::French(fr)": ["additional_geometry"],
"label::Spanish(es)": ["additional_geometry"],
"label::italian(it)": ["additional_geometry"],
"label::nepali(ne)": ["additional_geometry"],
"label::hindi(hi)": ["additional_geometry"],
"label::tamil(ta)": ["additional_geometry"],
"label::bengali(bn)": ["additional_geometry"],
"label::chinese simplified(zh-hans)": ["additional_geometry"],
"label::chinese traditional(zh-hant)": ["additional_geometry"],
}
)
# Insert the new row into the DataFrame
Expand Down
Loading