-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move all themable strings into lib/defaults.php #3791
Comments
There are a few leftovers too, not sure if these are included above or not: WebDAV http://192.168.1.73/owncloud/remote.php/webdav/ |
Plus, of course, apps that have strings. |
Just be be sure, default.php wasn't meant for all strings that somewhere appear in ownCloud. The idea of default.php was to have a single place for standard text phrases which appear on multiple places and which might differ between the community and enterprise addition to make it easy to change them. A typical example is the footer.
I also saw that we use different footers on different pages. Maybe it would be a good idea to harmonize them. I think one footer should be enough, or at most two (if it is really needed), a long version and a short version. |
@schiesbn yeah, but I think it’s a good idea to put all the themable stuff there anyway. Or should we totally not do it? It’s your call. :) |
Themable stuff is OK. This should be mostly stuff which is used on different places and which is different between the community and the enterprise edition. I just want to avoid to have a large list of strings in default.php where it is hard to know which string is used in which context. For example I don't think it makes sense to add strings like "Use this address to connect to your ownCloud in your file manager". I will have another look regarding the footers, thought that I saw more than two different. I would suggest to just start to add themable strings and decide one by one. |
The problem is the word ownCloud in that sentence "Use this address to connect to your ownCloud in your file manager". It is not possible to change that name without a manual edit, which means ... well, lets just say I get a lot of complaints. We really need a string in that spot that we can use as the "name" of the ownCloud instance. Maybe I want to call it "mtCloud", there should be a place I can define that name, which would pull it for places where that term is used. |
Maybe we should try to avoid "ownCloud" in such sentences, for example we could write instead "Use this address to access your files in your file manager". This would be even more accurate, since ownCloud can be much more than your files. Of course we could try to replace "ownCloud" everywhere with OC_Default::getName(); but I'm not sure if this will work out in every area, especially for non-core apps. Therefore I would rather try to avoid "ownCloud" in areas where it is not really needed, like the example above. For everything else, like page titles we already have the name in defaults.php. |
Agreed! Can you do that easily? That would be great. |
Good point @MTRichards. And I agree with @schiesbn that we should avoid the term »ownCloud« in the interface. Let me search and submit a pull request for some wording fixes. |
Looked into it, here are a few more areas that we need to look at getting ownCloud Most imporant ones I think you have covered, except perhaps the email templates:
Less important, as they are in the Admin Panel, but still good to change in the apps:
|
@schiesbn - ping |
Footers in personal settings, admin settings and login page are already fixed. Or do you want something different from "© 2013 ownCloud Inc. – Your Cloud, Your Data, Your Way!" for the enterprise edition? Regarding email templates, @jancborchardt merged some stuff to master (#3683) but didn't backported it to stable5. Was it by intention? Do you want to backport it to stable5 first before I adjust the templates for different themes? |
@schiesbn the mail template changes are too substantial to be safely backported to stable5 I think. Too much risk for errors. @DeepDiver1975? Can you make the getEdition check in master for that? And can you check out #3827 as well, for the doc addresses? I will check out the other strings @MTRichards mentioned and try to reword them without »ownCloud« in them. |
The footers are ok for EE, the issue is that these strings are theme able from a single location so we don't "discover" strings buried somewhere. We should try hard to back port to stable 5 if we can, but only if we can without breaking everything. |
I just merged the branch with the updated defaults.php and updated footer for both web and mail. Regarding the doc links, I will add this directly to Jans branch. So from my side this issue is solved. @jancborchardt did you already checked the other strings? You can close this issue if the strings are OK. |
@jancborchardt anything new about the remaining strings? |
Squashed commit of the following: commit eed4b49 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 8 10:03:23 2013 +0200 initialize OC_Defaults only once commit bf6f07c Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 8 10:02:48 2013 +0200 link to doc in error messages commit ea61ee6 Merge: e41af3d 3c1308f Author: Björn Schießle <schiessle@owncloud.com> Date: Thu Jul 4 11:10:56 2013 +0200 Merge branch 'master' into better-messages commit e41af3d Author: Björn Schießle <schiessle@owncloud.com> Date: Thu Jul 4 11:10:41 2013 +0200 move to non-static defaults.php commit 9e4258b Author: Björn Schießle <schiessle@owncloud.com> Date: Tue Jul 2 10:32:13 2013 +0200 no sprintf here, lets t() handle it commit fe1df34 Merge: d8f6859 cb5811b Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:13:38 2013 +0200 Merge branch 'master' into better-messages commit d8f6859 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:10:57 2013 +0200 use document base url from defaults.php commit 6c54037 Merge: bea6b1c 7b0e3e6 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:00:15 2013 +0200 Merge branch 'master' into better-messages commit bea6b1c Author: Jan-Christoph Borchardt <hey@jancborchardt.net> Date: Mon Jun 24 16:21:12 2013 +0200 link to docs in WebDAV message, ref #3791 commit 3119b36 Author: Jan-Christoph Borchardt <hey@jancborchardt.net> Date: Mon Jun 24 16:10:21 2013 +0200 link to docs in error messages, fix #3819
Squashed commit of the following: commit eed4b49 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 8 10:03:23 2013 +0200 initialize OC_Defaults only once commit bf6f07c Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 8 10:02:48 2013 +0200 link to doc in error messages commit ea61ee6 Merge: e41af3d 3c1308f Author: Björn Schießle <schiessle@owncloud.com> Date: Thu Jul 4 11:10:56 2013 +0200 Merge branch 'master' into better-messages commit e41af3d Author: Björn Schießle <schiessle@owncloud.com> Date: Thu Jul 4 11:10:41 2013 +0200 move to non-static defaults.php commit 9e4258b Author: Björn Schießle <schiessle@owncloud.com> Date: Tue Jul 2 10:32:13 2013 +0200 no sprintf here, lets t() handle it commit fe1df34 Merge: d8f6859 cb5811b Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:13:38 2013 +0200 Merge branch 'master' into better-messages commit d8f6859 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:10:57 2013 +0200 use document base url from defaults.php commit 6c54037 Merge: bea6b1c 7b0e3e6 Author: Björn Schießle <schiessle@owncloud.com> Date: Mon Jul 1 11:00:15 2013 +0200 Merge branch 'master' into better-messages commit bea6b1c Author: Jan-Christoph Borchardt <hey@jancborchardt.net> Date: Mon Jun 24 16:21:12 2013 +0200 link to docs in WebDAV message, ref #3791 commit 3119b36 Author: Jan-Christoph Borchardt <hey@jancborchardt.net> Date: Mon Jun 24 16:10:21 2013 +0200 link to docs in error messages, fix #3819 Conflicts: lib/config.php
@schiesbn I checked out the remaining strings @MTRichards mentioned. Apart from the ones I already changed, they would sound weird if we try to avoid the word »ownCloud« there. What we could do is replace all those instances with a variable (different from defaultEntity and defaultName) which for both community and Enterprise returns »ownCloud«. Like a defaultOwnCloud or something like that – because in those sentences, »ownCloud Inc.« does not make sense and »ownCloud Enterprise Edition« is way too long. There companies can set what they want their software to be referred as in short. But then again, all those strings are in admin areas only anyway, so I think it might be overkill. You decide @schiesbn @MTRichards. |
Seems like overkill, but I know that some folks really want it branded their own solution. So, lets close this for now but keep the enhancement request open for the string in a later version. |
Very good work! Now someone should update http://owncloud.org/theming/ and other documentation files, explaining how to change the default ownCloud name. |
@jancborchardt can we close this issue? From my side we are done or is there anything still open? |
Yep this is done. Yeeeha! |
There are some strings already in https://github.com/owncloud/core/blob/master/lib/defaults.php
We should put the other ones in there too, most notably the big footers as well as the logo-claim text (are there any others?). All themable strings should be in that file.
cc @schiesbn @butonic
The text was updated successfully, but these errors were encountered: