kopia lustrzana https://github.com/hholzgra/maposmatic/
work around issue #105 for now by hard coded english default
rodzic
1afbd0aab9
commit
05542b7ba8
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.2.12 on 2023-01-16 15:36
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('maposmatic', '0029_add_logos'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='maprenderingjob',
|
||||||
|
name='map_language',
|
||||||
|
field=models.CharField(default='en_US.UTF-8', max_length=16),
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.2.12 on 2023-01-16 15:40
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('maposmatic', '0030_map_language_default_engish'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='maprenderingjob',
|
||||||
|
name='map_language',
|
||||||
|
field=models.CharField(blank=True, default='en_US.UTF-8', max_length=16, null=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -112,7 +112,7 @@ class MapRenderingJob(models.Model):
|
||||||
submitterip = models.GenericIPAddressField(null=True,blank=True)
|
submitterip = models.GenericIPAddressField(null=True,blank=True)
|
||||||
submittermail = models.EmailField(null=True,blank=True)
|
submittermail = models.EmailField(null=True,blank=True)
|
||||||
index_queue_at_submission = models.IntegerField()
|
index_queue_at_submission = models.IntegerField()
|
||||||
map_language = models.CharField(max_length=16)
|
map_language = models.CharField(max_length=16, null=True, blank=True, default='en_US.UTF-8')
|
||||||
|
|
||||||
renderstep = models.CharField(max_length=80,null=True,blank=True)
|
renderstep = models.CharField(max_length=80,null=True,blank=True)
|
||||||
|
|
||||||
|
|
|
@ -423,10 +423,10 @@ $('#error-modal').modal('show')
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{% trans "Locale" %}</legend>
|
<legend>{% trans "Locale" %}</legend>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button id="map_language_button" type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-expand="false">
|
<button id="map_language_button" type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-expand="false">en_US.UTF-8</button>
|
||||||
{{ form.map_language.value }}
|
<!-- {{ form.map_language.value }} -->
|
||||||
</button>
|
</button>
|
||||||
<input type="hidden" name="{{ form.map_language.name }}" id="{{ form.map_language.name }}"/>
|
<input type="hidden" name="{{ form.map_language.name }}" id="{{ form.map_language.name }}" value="en_US.UTF-8"/>
|
||||||
<ul id="maplang_choices" class="dropdown-menu bg-light" style="height: 400px; overflow-y: auto;" area-labeledby="map_language_button">
|
<ul id="maplang_choices" class="dropdown-menu bg-light" style="height: 400px; overflow-y: auto;" area-labeledby="map_language_button">
|
||||||
{% for choice in form.map_language.field.choices %}
|
{% for choice in form.map_language.field.choices %}
|
||||||
<li><a class="dropdown-item" href="#" data-langcode="{{choice.0}}" onclick="$('#map_language_button').html($(this).html()); $('#{{ form.map_language.name }}').val('{{choice.0}}');">{{choice.1}} ({{choice.0|locale_base}})</a></li>
|
<li><a class="dropdown-item" href="#" data-langcode="{{choice.0}}" onclick="$('#map_language_button').html($(this).html()); $('#{{ form.map_language.name }}').val('{{choice.0}}');">{{choice.1}} ({{choice.0|locale_base}})</a></li>
|
||||||
|
|
Ładowanie…
Reference in New Issue