diff --git a/Logic/App_GlobalResources/nl/Logic.Communications.Transmission.NotificationPayload.nl.resx b/Logic/App_GlobalResources/nl/Logic.Communications.Transmission.NotificationPayload.nl.resx
deleted file mode 100644
index c3677795..00000000
--- a/Logic/App_GlobalResources/nl/Logic.Communications.Transmission.NotificationPayload.nl.resx
+++ /dev/null
@@ -1,152 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Logic/App_GlobalResources/nl/Logic.Financial.FinancialTransactionTagSetTypesStock.nl.resx b/Logic/App_GlobalResources/nl/Logic.Financial.FinancialTransactionTagSetTypesStock.nl.resx
deleted file mode 100644
index 04e70c23..00000000
--- a/Logic/App_GlobalResources/nl/Logic.Financial.FinancialTransactionTagSetTypesStock.nl.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
-
diff --git a/Logic/App_GlobalResources/nl/Logic.Swarm.DashboardTodos.nl.resx b/Logic/App_GlobalResources/nl/Logic.Swarm.DashboardTodos.nl.resx
deleted file mode 100644
index 121a5035..00000000
--- a/Logic/App_GlobalResources/nl/Logic.Swarm.DashboardTodos.nl.resx
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Logic/Logic.csproj b/Logic/Logic.csproj
index 1ffc4f6f..525e3f26 100644
--- a/Logic/Logic.csproj
+++ b/Logic/Logic.csproj
@@ -347,9 +347,6 @@
ResXFileCodeGenerator
Logic.Test.Designer.cs
-
-
-
diff --git a/Site5/App_Code/CommonV5Base.cs b/Site5/App_Code/CommonV5Base.cs
index 4319051c..d8801eec 100644
--- a/Site5/App_Code/CommonV5Base.cs
+++ b/Site5/App_Code/CommonV5Base.cs
@@ -60,7 +60,8 @@ public class CommonV5Base
}
catch (Exception exception)
{
- throw new Exception("Could not set culture \"" + preferredCulture + "\"", exception);
+ Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
+ // throw new Exception("Could not set culture \"" + preferredCulture + "\"", exception);
// Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
}
diff --git a/Site5/App_GlobalResources/nl/Controls.Pirates.nl.resx b/Site5/App_GlobalResources/nl/Controls.Pirates.nl.resx
deleted file mode 100644
index 4b4eb257..00000000
--- a/Site5/App_GlobalResources/nl/Controls.Pirates.nl.resx
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Verander persoon...
- Displayed in popup that shows an individual as owner of something
-
-
- Verander naar:
- Displayed as header above the person selector when changing person
-
-
diff --git a/Site5/App_GlobalResources/nl/Global.nl.resx b/Site5/App_GlobalResources/nl/Global.nl.resx
deleted file mode 100644
index 563e91ab..00000000
--- a/Site5/App_GlobalResources/nl/Global.nl.resx
+++ /dev/null
@@ -1,376 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Uitloggen
- Causes signoff and de-authentication
-
-
- Voorkeuren
- Tooltip on hover over wrench icon
-
-
- Kies taal
- Shown as header of language list pop-up
-
-
- Dit is een standaardpagina. Het enige item beschikbaar is bewegingsregistratie voor vergaderingen.
- Temporary
-
-
- Dit is de standaardpagina (het dashboard). In de tijd wordt dit een echt nette pagina met nummers en graphics en spullen. Voor nu, ga in plaats daarvan naar de vergadering pagina's.
- Temporary display while there is no dashboard.
-
-
- Dashboard
- Title of default page
-
-
- Werkelijke waarden
-
-
- Werkelijke waarden (prel)
-
-
- Werkelijke waarden vanaf vorig jaareinde
-
-
- Boekhouding Account
-
-
- Rekening
-
-
- Budget
-
-
- Voorschot
-
-
- Kasvoorschot #{0}
-
-
- Contant geld voorschotten {0}
-
-
- Kosten
-
-
- Kosten #{0}
-
-
- Kosten {0}
-
-
- Factuur
-
-
- Factuur
-
-
- Conferentie
-
-
- Salaris
-
-
- Salaris voor {0:yyyy-MMM}
- The payout date is inserted for date, like "Salary for 2012-Aug".
-
-
- Belasting voor salarissen {0}
-
-
- Belasting voor salaris #{0}
-
-
-
- Jaarlijkse resultaat
-
-
- Zo snel mogelijk
- Used as time indicator for "right away" (as soon as possible) in place of dates where in a hurry
-
-
- ANNULEREN
- Displayed as cancellation link on changing something
-
-
- Wijzigen?
- Link after describing what the user is looking at, allowing a change.
-
-
- Klik op de afbeelding om te vergroten.
- Displayed where thumbnails can be enlarged modally.
-
-
- Bevestig
- Displayed as confirmation link on changing something
-
-
- --Selecteer Begroting/Account--
- Initializer in dropdown box.
-
-
- -- Selecteer organisatie --
- Initializer in dropdown box.
-
-
- Ga naar...
- Link after describing something.
-
-
- Niemand
- Displayed when an account/position etc is vacant
-
-
- Eigenaar
-
-
- Bestand wordt verwerkt...
- Displayed while processing an uploaded file (along with a progress bar).
-
-
- Bestand uploaden
- Displayed on "Submit" button next to file upload controls.
-
-
- Bestand uploaden naar Swarmops
- Used as header above upload sections.
-
-
- Selecteer a.u.b. een bestand dat u wilt uploaden.
- Error message. Displayed when the used has clicked "Upload" without selecting a file to upload.
-
-
- U bent momenteel aangemeld bij <strong>{0}</strong>. Zou u willen overstappen naar een andere organisatie?
-
-
- Acties
- List of shortcuts to likely actions
-
-
- Geen voorgestelde acties op dit punt.
- No shortcuts from this page right now.
-
-
- Informatie
- Information about current page
-
-
- Nog te doen
- List of todo items
-
-
- Geen dringende actie items nu.
- Indicator that nothing needs immediate attention
-
-
- Actie-items komen hier.
- Placeholder for future action items. Temporary.
-
-
- Voorschotten
-
-
- Vooruitbetalingen in contanten
-
-
- Kosten
-
-
- Onkostenvergoedingen
-
-
- Facturen
-
-
- Inkomende facturen
-
-
- Facturen
-
-
- Uitgaande facturen
-
-
- N/B
-
-
- Niet van toepassing
-
-
- Vanaf nu
-
-
- Vandaag
-
-
-
- Project
- Tagging costs/income to projects
-
-
- Gerelateerde
- List of shortcuts to related actions to current one
-
-
- Kosten #{0} (min voorschot #{1})
-
-
- Kosten #{0} (min voorschotten)
-
-
-
-
- Kosten vordering #{0} door {1}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Menu5.nl.resx b/Site5/App_GlobalResources/nl/Menu5.nl.resx
deleted file mode 100644
index 004b864e..00000000
--- a/Site5/App_GlobalResources/nl/Menu5.nl.resx
+++ /dev/null
@@ -1,350 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Beheerder
-
-
- Toegangscontrole lijst
-
-
-
- Geografische Boom
-
-
- Organisatieclusters
-
-
- Communicatie
-
-
- Automail Tekst Aanpassen
-
-
- Beheer Mail Inbox
-
-
- Massa Mails
-
-
- Beheer Papieren Inbox
-
-
- Ontvangen Papieren Brieven
-
-
- Beheer Reporterslijst
-
-
- Verzend Persbericht
-
-
- Bericht Activisten
-
-
- Beheer Tekst Inbox
-
-
- Financiën
-
-
- Attest Kosten
-
-
- Terugbetaling op Uitgaven
-
-
- Maak een Nieuwe Aankoop
-
-
- Gigs Assistent
-
-
- Lijst
-
-
-
-
- Binnenkomende Facturen
-
-
- Uitgaande Facturen
-
-
- Uitstaande Vooruitbetalingen in Cash
-
-
- Salarissen
-
-
- Begroting Beheren
-
-
- Geld Uitgeven
-
-
- Ontvangen Factuur
-
-
- Vraag om Kasvoorschot
-
-
- Factuur Versturen
-
-
- Declaraties valideren
-
-
- Zie Begroting en Actuele waarden
-
-
- Zie Liquiditeitsprognose
-
-
- Bestuur
-
-
- Kandidaten
-
-
- Maak een Stemmenlijst
-
-
- Vergaderingen Administratie
-
-
- Vergadering Boardadmin
-
-
- Moties
-
-
- Stemmen
-
-
- Instellen van Admin-toegang (tijdelijke pagina)
-
-
- Grootboeken
-
-
- Account Plan
-
-
- Grootboek nazien
-
-
- Balans
-
-
- Kan grootboek niet afsluiten voor {0}
-
-
- Grootboek afsluiten voor {0}
-
-
-
- Importeer Bankgegevens
-
-
- Salarisadministratie
-
-
- Winst- & verliesrekening
-
-
-
- Budgetbedragen Instellen
-
-
- Upload Bankbestanden
-
-
-
- Organisatie
-
-
- Beschikbare Verantwoordelijkheden
-
-
- Communicatie Sjablonen
-
-
- Facturen
-
-
- Massa Mails
-
-
- Nieuwsbrieven
-
-
- Persberichten
-
-
- Feeds
-
-
- Nieuwsbrieven
-
-
- Persberichten
-
-
- Ledenstatistieken
-
-
- Organigram
-
-
- Organisatie Verantwoordelijkheden
-
-
- Organisatie Instellingen
-
-
- Suborganisatie Boom
-
-
- Mensen
-
-
- Lid Toevoegen
-
-
- Ledenlijst
-
-
- Log Activisme
-
-
- Beheer Conferenties
-
-
- Beheren van Vrijwilligers
-
-
- Nieuwe Conferentie
-
-
- Meld jezelf aan
-
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Pages.Financial.nl.resx b/Site5/App_GlobalResources/nl/Pages.Financial.nl.resx
deleted file mode 100644
index 9c775fe3..00000000
--- a/Site5/App_GlobalResources/nl/Pages.Financial.nl.resx
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Pages.Governance.nl.resx b/Site5/App_GlobalResources/nl/Pages.Governance.nl.resx
deleted file mode 100644
index 7fe7e1b1..00000000
--- a/Site5/App_GlobalResources/nl/Pages.Governance.nl.resx
+++ /dev/null
@@ -1,315 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Opgeslagen als #{0}-{1}.
- Keep very short
-
-
- Voorgestelde Beslissing
- Decision to be made, amending the motion
-
-
- Amendement Toevoegen
- Used as header and page title
-
-
- Amendement Indienen
-
-
- Indiener
-
-
- U verzendt een amendement aan de motie
- In sidebar info box. Motion title follows in bold.
-
-
- Motivering
- Text of motion amendment (justification and rationale)
-
-
- Amendement Titel
-
-
- Besluiten (één per regel)
- Proposed decisions, one per line
-
-
- Motie opgeslagen als #{0}.
- Keep short
-
-
- Motie Toevoegen
- Used as header and page title
-
-
- Motie Voorleggen
-
-
- Indiener
- Original submitter (not person at keyboard)
-
-
- U legt een motie voor aan de vergadering
- Meeting name follows in bold.
-
-
- Motie Motivering
- Text of motion
-
-
- Motie Titel
- Motion title in form
-
-
- Verkeerde vergadering?
- Link to change meetings
-
-
- Geamendeerd
-
-
- Amendementen
-
-
- Uitgevoerd
-
-
- #
-
-
- Titel
-
-
- Lijst moties
- Used as header and page title
-
-
- Je bekijkt momenteel de moties voor de vergadering
-
-
- Indienen...
- Displayed in-grid
-
-
- Stel een nieuw amendement voor op de motie
-
-
- Amendement
-
-
- Één amendement
-
-
- {0} amendementen
-
-
- Geen amendementen
-
-
- Voorgestelde Aanpassing
-
-
- Motivering
-
-
- Voorgestelde Beslissingen
-
-
- Discussie Thread
- Label before link to forum or similar
-
-
- Forum Thread (posts tot nog toe: {0})
- Hyperlink text
-
-
- Motie #{0}
-
-
- Motie Weergeven
- Used as header and page title
-
-
- Motie Motivering
-
-
- Je bekijkt een motie die is ingediend op de vergadering
- In sidebar info box. Meeting name follows in bold.
-
-
- Aanbeveling van het bestuur
- First item in dropdown box
-
-
-
- Bestuur zegt
- Row header
-
-
- Wijzigen
- Row header
-
-
- Besluit
- Row header
-
-
- #
- Column header
-
-
- Nee
- Column header
-
-
- Doel
- Row header
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Pages.Init.nl.resx b/Site5/App_GlobalResources/nl/Pages.Init.nl.resx
deleted file mode 100644
index 43313cb6..00000000
--- a/Site5/App_GlobalResources/nl/Pages.Init.nl.resx
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Geen andere handelingen zijn mogelijk totdat de installatie voltooid is.
-
-
-
- Voltooi installatie.
-
-
- Systeembeheerder
- Displayed in lieu of logged-in-username
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Pages.Ledgers.nl.resx b/Site5/App_GlobalResources/nl/Pages.Ledgers.nl.resx
deleted file mode 100644
index 22b31f00..00000000
--- a/Site5/App_GlobalResources/nl/Pages.Ledgers.nl.resx
+++ /dev/null
@@ -1,309 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
-
- Account
-
-
- Middelen
-
-
-
- Huidige
-
-
- Schuld
-
-
- Balans
- Must ONLY contain A-Z, a-z characters - nothing accented!
-
-
- Eind-XXXX
- The XXXX is replaced with year number.
-
-
-
- Balans
-
-
- Verander kwartaal 1
-
-
- Verander kwartaal 2
-
-
- Verander kwartaal 3
-
-
- Verander kwartaal 4
-
-
- Begin-XXXX
- The XXXX is replaced with year number.
-
-
- Rekening
-
-
- Winst/Verlies voor {0} voor het jaar
- The {0} is the organization name. The year number follows this string.
-
-
- Kosten
-
-
- WinstVerlies
- Must ONLY contain A-Z, a-z characters - nothing accented!
-
-
- Inkomsten
-
-
-
- Afgelopen jaar
-
-
- Winst & Verlies verklaring
-
-
- Kwartaal 1
-
-
- Kwartaal 2
-
-
- Kwartaal 3
-
-
- Kwartaal 4
-
-
- Resultaten
- Footer on P&L statement
-
-
- vanaf vorig jaareinde
- Year To Date
-
-
-
-
- Budgeteigenaar
- Displayed above editables
-
-
-
-
-
- Stel nieuwe budgetten in
- Text on submit button
-
-
-
-
-
-
-
- Bank download instructies
- Header above instructions for generation of the bank file type selected.
-
-
-
-
-
-
-
-
-
- Bestand succesvol geïmporteerd
- Displayed as header after successful processing
-
-
- Bestand gesynchroniseerd, echter data is niet synchroon
- Displayed as header after a good processing that ended in sync failure
-
-
-
- Fout bij importeren bestand
- Displayed as header on import failure
-
-
-
-
-
- Upload Bank bestanden
- Displayed above main content.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Site5/App_GlobalResources/nl/Pages.Security.nl.resx b/Site5/App_GlobalResources/nl/Pages.Security.nl.resx
deleted file mode 100644
index c291b256..00000000
--- a/Site5/App_GlobalResources/nl/Pages.Security.nl.resx
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Toegang tot deze pagina geweigerd
-
-
- U heeft geprobeerd toegang te verkrijgen tot een pagina waar u de rechten niet voor heeft. Kijk op de hoofdpagina waarom dit zo is.
-
-
- Toegang geweigerd
-
-
-
diff --git a/Site5/Images/Flags/txl-24px.png b/Site5/Images/Flags/txl-24px.png
new file mode 100644
index 00000000..4295f431
Binary files /dev/null and b/Site5/Images/Flags/txl-24px.png differ
diff --git a/Site5/Images/Flags/txl-64px.png b/Site5/Images/Flags/txl-64px.png
new file mode 100644
index 00000000..072e3678
Binary files /dev/null and b/Site5/Images/Flags/txl-64px.png differ
diff --git a/Site5/Master-v5.master b/Site5/Master-v5.master
index c5e0b0ee..9510afbb 100644
--- a/Site5/Master-v5.master
+++ b/Site5/Master-v5.master
@@ -120,7 +120,7 @@
-
+
@@ -185,19 +185,7 @@
-
-
-
-
-
-
+
diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs
index 755b3a23..3588bbb8 100644
--- a/Site5/Master-v5.master.cs
+++ b/Site5/Master-v5.master.cs
@@ -133,8 +133,6 @@ namespace Swarmops
SetupDropboxes();
- this.ButtonSwitchOrganizations.Attributes.Add("onclick", "$('#" + this.TextSwitchToOrganizationId.ClientID + "').val($('#" + this.DropSwitchOrganizations.ClientID + "').val()); $('#" + this.ButtonActuatorSwitchOrganizations.ClientID + "').click();");
-
// Check for message to display
HttpCookie dashMessage = Request.Cookies["DashboardMessage"];
@@ -153,24 +151,6 @@ namespace Swarmops
private void SetupDropboxes()
{
- this.DropSwitchOrganizations.Items.Clear();
-
- int sandboxId = Organization.SandboxIdentity;
-
- this.DropSwitchOrganizations.Items.Add(new ListItem(Resources.Global.Global_DropInits_SelectOrganization, "0"));
- this.DropSwitchOrganizations.Items.Add(new ListItem("Sandbox", sandboxId.ToString()));
-
- Memberships memberships = _currentUser.GetMemberships();
-
- foreach (Membership membership in memberships)
- {
- if (membership.OrganizationId != sandboxId) // sandbox is already added
- {
- this.DropSwitchOrganizations.Items.Add(new ListItem(membership.Organization.Name,
- membership.OrganizationId.ToString(
- CultureInfo.InvariantCulture)));
- }
- }
}
private void Localize()
@@ -201,20 +181,21 @@ namespace Swarmops
flagName = cultureStringLower.Substring(3);
}
+ if (cultureStringLower == "af-za") // "South African Afrikaans", a special placeholder for localization code
+ {
+ flagName = "txl";
+ InitTranslation();
+ }
+ else
+ {
+ this.LiteralCrowdinScript.Text = string.Empty;
+ }
+
this.ImageCultureIndicator.ImageUrl = "~/Images/Flags/" + flagName + "-24px.png";
this.LinkLogout.Text = Resources.Global.CurrentUserInfo_Logout;
this.LabelPreferences.Text = Resources.Global.CurrentUserInfo_Preferences;
- this.LiteralCurrentlyLoggedIntoSwitch.Text = string.Format(Resources.Global.Master_SwitchOrganizationDialog, _currentOrganization.Name);
-
- if (!cultureStringLower.StartsWith("en") && cultureStringLower != "sv-se" && cultureStringLower != "nl-NL" && cultureString.Trim().Length > 0)
- {
- this.LinkTranslate.Visible = true;
- }
- else
- {
- this.LinkTranslate.Visible = false;
- }
+ // this.LiteralCurrentlyLoggedIntoSwitch.Text = string.Format(Resources.Global.Master_SwitchOrganizationDialog, _currentOrganization.Name);
}
private void SetupMenuItems()
@@ -378,69 +359,21 @@ namespace Swarmops
FormsAuthentication.RedirectToLoginPage();
}
- public event EventHandler LanguageChanged;
-
- private void LanguageSelector_LanguageChanged(object sender, EventArgs e)
- {
- // Received event from control - refire
-
- _currentUser.PreferredCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
- this.LiteralCrowdinScript.Text = string.Empty;
-
- if (LanguageChanged != null)
- {
- LanguageChanged(this, new EventArgs());
- }
- }
-
- protected void LinkTranslate_Click(object sender, EventArgs e)
+ private void InitTranslation()
{
string crowdinCode =
"\r\n" +
- "\r\n" +
"\r\n" +
+ "\r\n" +
"\r\n";
this.LiteralCrowdinScript.Text = crowdinCode;
// Page.ClientScript.RegisterStartupScript(this.GetType(), "crowdin", crowdinCode, false);
}
- protected void ButtonSwitchOrganizations_Click(object sender, EventArgs e)
- {
- int currentUserId = _currentUser.Identity;
- int desiredOrganizationId = Int32.Parse(this.TextSwitchToOrganizationId.Text);
-
- if (desiredOrganizationId != 0)
- {
- bool foundMembership = false;
- Memberships currentUserMemberships = _currentUser.GetMemberships();
- foreach (Membership membership in currentUserMemberships)
- {
- if (membership.OrganizationId == desiredOrganizationId)
- {
- foundMembership = true;
- }
- }
-
- if (foundMembership)
- {
- FormsAuthentication.RedirectFromLoginPage(
- string.Format(CultureInfo.InvariantCulture, "{0},{1}", currentUserId, desiredOrganizationId),
- true);
- Response.Redirect("/");
- }
- }
- }
}
}
\ No newline at end of file
diff --git a/Site5/Pages/v5/User/SelectLanguage.aspx.cs b/Site5/Pages/v5/User/SelectLanguage.aspx.cs
index f5456579..2a8fbe76 100644
--- a/Site5/Pages/v5/User/SelectLanguage.aspx.cs
+++ b/Site5/Pages/v5/User/SelectLanguage.aspx.cs
@@ -54,6 +54,12 @@ namespace Swarmops.Frontend.Pages.v5.User
availableLanguages.Add(newLanguage);
}
+ LanguageParameters localizeParams = new LanguageParameters();
+ localizeParams.IconUrl = "/Images/Flags/txl-64px.png";
+ localizeParams.CultureId = "af-ZA";
+ localizeParams.DisplayName = "Translate Swarmops into Your Language";
+ availableLanguages.Add(localizeParams);
+
this.RepeaterLanguages.DataSource = availableLanguages;
this.RepeaterLanguages.DataBind();
}