Getting closer. Let's try this...

This commit is contained in:
Rick Falkvinge
2021-02-16 13:18:10 +01:00
parent 9b8714d30b
commit d5097559fb
2 changed files with 13 additions and 4 deletions
@@ -17,10 +17,10 @@ for F in *; do
if [ -d "$F" ]; then
# $F is a directory
cd $F
find . -iname '*.resources' -exec al /target:lib /culture:$F /version:1.0.0.0 /embed:{} /out:{}.dll \;
find . -iname '*.resources' -exec al /target:lib /culture:$F /version:1.0.0.0 /embed:{} /out:Swarmops.Frontend.{}.dll \;
cd ..
elif [[ $F == *.resources ]]; then
al /target:lib /embed:$F /version:1.0.0.0 /out:$F.dll
al /target:lib /embed:$F /version:1.0.0.0 /out:Swarmops.Frontend.$F.dll
fi
done
+11 -2
View File
@@ -2,6 +2,8 @@
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Resources;
using System.Runtime.Versioning;
using System.Web;
using System.Web.ExtensionMethods;
@@ -529,8 +531,15 @@ namespace Swarmops.Pages.Security
public string Localized_BitIdRequired_Dialog
{
get { return @"Being Localized"; } /* --- TODO: Commented out
get { return CommonV5.JavascriptEscape(Resources.Pages.Security.Login_BitIdRequired_Dialog); } --- */
get { return CommonV5.JavascriptEscape(Localization.GetString("Login_BitIdRequired_Dialog")); }
}
protected ResourceManager Localization
{
get
{
return new ResourceManager("Swarmops.Frontend.Pages.Security", Assembly.GetAssembly(this.GetType()));
}
}
// ReSharper restore InconsistentNaming