Use --with-iosapp-name to set the name displayed in the Help>About dialog
Change-Id: I04b0e7c152ee69b038ec30549c203a54eecf4780
This commit is contained in:
parent
191d7bfa35
commit
fe3832f3c6
4 changed files with 10 additions and 3 deletions
|
@ -24,7 +24,7 @@ make or open the Mobile project there yet.
|
|||
3) Do a separate clone of the online repo on Linux, run autogen.sh,
|
||||
and configure it with the --enable-iosapp option:
|
||||
|
||||
./configure --enable-iosapp
|
||||
./configure --enable-iosapp --with-iosapp-name="My Own Mobile LibreOffice"
|
||||
|
||||
Then run make. That will produce files in loleaflet/dist, nothing
|
||||
else. Copy those to the corresponding folder in the online clone
|
||||
|
|
|
@ -224,6 +224,7 @@ $(builddir)/dist/loleaflet.html: $(srcdir)/html/loleaflet.html.m4 $(LOLEAFLET_HT
|
|||
@m4 -E -DDEBUG=$(ENABLE_DEBUG) \
|
||||
-DIOSAPP=$(ENABLE_IOSAPP) \
|
||||
-DGTKAPP=$(ENABLE_GTKAPP) \
|
||||
-DMOBILEAPPNAME="$(MOBILE_APP_NAME)" \
|
||||
-DLOLEAFLET_CSS="$(subst $(SPACE),$(COMMA),$(LOLEAFLET_CSS_M4))" \
|
||||
-DLOLEAFLET_JS="$(subst $(SPACE),$(COMMA),$(GLOBAL_JS) $(NODE_MODULES_JS) \
|
||||
$(call LOLEAFLET_JS,$(srcdir)/build/build.js) \
|
||||
|
|
|
@ -160,7 +160,8 @@ ifelse(MOBILEAPP,[true],
|
|||
dnl# For use in conditionals in JS: window.ThisIsAMobileApp, window.ThisIsTheiOSApp,
|
||||
dnl# and window.ThisIsTheGtkApp
|
||||
ifelse(MOBILEAPP,[true],
|
||||
[window.ThisIsAMobileApp = true;],
|
||||
[window.ThisIsAMobileApp = true;
|
||||
window.MobileAppName='MOBILEAPPNAME'],
|
||||
[window.ThisIsAMobileApp = false;]
|
||||
)
|
||||
ifelse(IOSAPP,[true],
|
||||
|
|
|
@ -245,7 +245,12 @@ L.Map.include({
|
|||
// Move the div sitting in 'body' as vex-content and make it visible
|
||||
var content = $('#about-dialog').clone().css({display: 'block'});
|
||||
// fill product-name and product-string
|
||||
var productName = (typeof brandProductName !== 'undefined') ? brandProductName : 'LibreOffice Online';
|
||||
var productName;
|
||||
if (window.ThisIsAMobileApp) {
|
||||
productName = window.MobileAppName;
|
||||
} else {
|
||||
productName = (typeof brandProductName !== 'undefined') ? brandProductName : 'LibreOffice Online';
|
||||
}
|
||||
content.find('#product-name').text(productName);
|
||||
var productString = _('This version of %productName is powered by');
|
||||
content.find('#product-string').text(productString.replace('%productName', productName));
|
||||
|
|
Loading…
Reference in a new issue