diff --git a/index.html b/index.html
index 6f7cf509..fa0f5ed2 100644
--- a/index.html
+++ b/index.html
@@ -4612,7 +4612,7 @@
🔊
@@ -4688,6 +4688,13 @@
class="icon-arrows-cw pointer"
>
+
+
+ Province culture:
+
+
+ Province language:
+
diff --git a/modules/dynamic/editors/states-editor.js b/modules/dynamic/editors/states-editor.js
index 810f1f9c..24a63bb6 100644
--- a/modules/dynamic/editors/states-editor.js
+++ b/modules/dynamic/editors/states-editor.js
@@ -434,13 +434,13 @@ function editStateName(state) {
modules.editStateName = true;
// add listeners
- byId("stateNameEditorShortCulture").on("click", regenerateShortNameCuture);
+ byId("stateNameEditorShortCulture").on("click", regenerateShortNameCulture);
byId("stateNameEditorShortRandom").on("click", regenerateShortNameRandom);
byId("stateNameEditorAddForm").on("click", addCustomForm);
byId("stateNameEditorCustomForm").on("change", addCustomForm);
byId("stateNameEditorFullRegenerate").on("click", regenerateFullName);
- function regenerateShortNameCuture() {
+ function regenerateShortNameCulture() {
const state = +stateNameEditor.dataset.state;
const culture = pack.states[state].culture;
const name = Names.getState(Names.getCultureShort(culture), culture);
diff --git a/modules/ui/provinces-editor.js b/modules/ui/provinces-editor.js
index 07ee522d..e5c4a9b7 100644
--- a/modules/ui/provinces-editor.js
+++ b/modules/ui/provinces-editor.js
@@ -294,7 +294,7 @@ function editProvinces() {
// move all burgs to a new state
province.burgs.forEach(b => (burgs[b].state = newStateId));
- // difine new state attributes
+ // define new state attributes
const {cell: center, culture} = burgs[burgId];
const color = getRandomColor();
const coa = province.coa;
@@ -500,6 +500,12 @@ function editProvinces() {
document.getElementById("provinceNameEditorShort").value = p.name;
applyOption(provinceNameEditorSelectForm, p.formName);
document.getElementById("provinceNameEditorFull").value = p.fullName;
+
+ const cultureName = pack.cultures[pack.cells.culture[pack.provinces[province].center]].name; // to display the culture name
+ const provinceLangID = pack.cultures[pack.cells.culture[pack.provinces[province].center]].base;
+ const provinceNameBase = Names.getNameBases()[provinceLangID].name;
+ document.getElementById("provinceCultureDisplay").innerText = cultureName;
+ document.getElementById("provinceLanguageDisplay").innerText = provinceNameBase;
$("#provinceNameEditor").dialog({
resizable: false,
@@ -520,12 +526,17 @@ function editProvinces() {
modules.editProvinceName = true;
// add listeners
- document.getElementById("provinceNameEditorShortCulture").addEventListener("click", regenerateShortNameCuture);
+ document.getElementById("provinceNameEditorShortCulture").addEventListener("click", regenerateShortNameCulture);
document.getElementById("provinceNameEditorShortRandom").addEventListener("click", regenerateShortNameRandom);
document.getElementById("provinceNameEditorAddForm").addEventListener("click", addCustomForm);
document.getElementById("provinceNameEditorFullRegenerate").addEventListener("click", regenerateFullName);
+
+ document.getElementById("provinceNameEditorShortCulture").addEventListener("mouseover", showdatatipNamesbase);
+ function showdatatipNamesbase() {
+ tip("namesbase " + this.id + Names.getNameBases()[provinceCultureID].name);
+ }
- function regenerateShortNameCuture() {
+ function regenerateShortNameCulture() {
const province = +provinceNameEditor.dataset.province;
const culture = pack.cells.culture[pack.provinces[province].center];
const name = Names.getState(Names.getCultureShort(culture), culture);