Hi there,

I was just wondering is there any idea to remove this prefix?
Just because it doesn't seem to be able to translate...

Thanks in advance!

Comments

kingto created an issue. See original summary.

nathaniel’s picture

Project: Photos Demo » Album Photos
Version: » 6.0.x-dev
Assigned: kingto » Unassigned
Priority: Major » Normal
Status: Needs work » Active

Moving to photos module issue queue.

Thanks for opening the issue. Looks like it is coming from the view settings:
/admin/structure/views/view/photos_album/edit/block_1

Under "Advanced" > "contextual filters" > "Photos: Album" > "when the filter value is available or a default is provided" > "Override title"

Album: {{ arguments.album_id }}

kingto’s picture

Thank you Nathaniel!!

I hope you are having an amazing weekend!
It seems more complicated than I thought, because I found no view is called photos_album on my website.
Then I went to phpMyAdmin and found there is only a "views_data:photos_album" stored in cache_default with encrypted BLOB data.
It won't let me browse the raw data or edit..

My site is running Drupal 8.8.
Would it be possible for you if you could export this view as .txt?

Much appreciated!

nathaniel’s picture

Title: Any way to remove "Album” prefix? » "Album” prefix not translatable
Version: 6.0.x-dev » 8.x-4.x-dev
Component: User interface » Code
Category: Support request » Bug report

If you have the "Views UI"module enabled you should be able to see a list of views here:
/admin/structure/views

What version of the photos module is installed?

If 6.0.x the the views should be in the config/install (or optional) photos module directory.

If 4.x it looks like a bug in PhotosAlbumController.php getTitle().

Also here you can export a single view to text if needed:
/admin/config/development/configuration/single/export

kingto’s picture

Thank you soooo much Nathaniel, I find it on the export page!!!
Yes, I have photos-8.x-4.3 installed. It is not appearing on the list of views.

With gratitude :)

kingto’s picture

Sorry I was wrong, that view I saw on the export page was created by myself...
Still couldn't find it.

nathaniel’s picture

Status: Active » Needs review
StatusFileSize
new581 bytes

The problem is in photos/src/Controller/PhotosAlbumController.php getTitle() around line 114.

Attached a patch to make it translatable.

kingto’s picture

Much appreciated Nathaniel, it works! I've tested it okay.

  • Nathaniel authored a37ad18 on 8.x-4.x
    Issue #3208128 by Nathaniel, kingto: "Album” prefix not translatable
    
nathaniel’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.