Comments (6)
👎 This could cause issues with multi-site, if we're breaking backwards compatibility in so many other places, why try and maintain it here?
from glotpress.
It has nothing to do with backwards compatibility. It's just saving people the work of renaming their GP tables to match the WordPress prefix.
For example, let's say you have a GP install sharing a database with a WP install. Pretty typical. If the GP prefix is gp_
and WP prefix is wp_
, the plugin currently would require you to rename the gp_*
tables to wp_gp_
to get it to work.
I was thinking it would be nice if you could just add define( 'GP_TABLE_PREFIX', 'gp_' );
to your wp-config.php and you wouldn't have to rename tables.
from glotpress.
I just think it's more trouble long term than the effort to rename the tables short term.
from glotpress.
Actually this is already possible, see https://github.com/deliciousbrains/GlotPress/blob/wordpress-plugin-dbi/gp-settings.php#L26-L28.
Do we want a constant or is the global var $gp_table_prefix
enough?
Edit: But it seems like it doesn't work as expected…
from glotpress.
Edit: But it seems like it doesn't work as expected…
Fixed in #63.
from glotpress.
I would think the variable is enough as long as we document it.
from glotpress.
Related Issues (20)
- Warning/Fatal due to pentesting payloads
- Warning (PHP7) / Fatal (PHP8) triggered by user inputs in gp_array_get()
- GlotPress saves the wrong translation
- Allow importing translations from the new PHP format
- No warning is given when a fuzzy is approved that contains a missing placeholder like %1$s HOT 5
- AZB locale properties need to be updated HOT 7
- False positive match in Glossary term '&' HOT 4
- Version discussion and translation statistics in GlotPress HOT 2
- Improve discussion mails - Not send 1 per discussion string HOT 6
- Exporting as only "es" not "es_ES" HOT 1
- URLs without ending slash aren't fully recognized
- Breadcrumbs: All the items have links including the last one (current), only some have ending actions HOT 3
- Glossary: No matches for single words of part_of_speech with no suffix rules
- Glossary: Match by glossary terms already suffixed HOT 1
- We do not have a link to the project in the breadcrumbs when we create a new project
- Currently GlotPress gives unwanted error messages for missing uppercase at the start of the sentence.
- Cascading warnings from input on array functions HOT 3
- Add regex option to search
- Tables go out of the viewport in lower resolutions
- Glossary recognation issue with "-"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glotpress.