Index: src/FilterEngine.cpp |
=================================================================== |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -277,3 +277,15 @@ |
std::string error(params.size() >= 1 && !params[0]->IsNull() ? params[0]->AsString() : ""); |
callback(error); |
} |
+ |
+std::string FilterEngine::GetAppLocale() |
+{ |
+ JsValuePtr locale = jsEngine->Evaluate("require(\"utils\").Utils.appLocale"); |
+ return locale->AsString(); |
Wladimir Palant
2013/08/01 11:49:09
The app locale is being passed in by the host appl
|
+} |
+ |
+std::string FilterEngine::GetDocumentationLink() |
+{ |
+ JsValuePtr docLink = jsEngine->Evaluate("require(\"prefs\").Prefs.documentation_link"); |
+ return docLink->AsString(); |
Wladimir Palant
2013/08/01 11:49:09
There is already an API to get preferences, why no
|
+} |